Download the PHP package horde/log without Composer

On this page you can find all versions of the php package horde/log. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package log

Horde Log

PSR-3 compatible logging library with legacy API support.

Overview

Horde Log provides two distinct APIs:

  1. PSR-3 Native Logger (src/, namespace Horde\Log)

    • Modern PSR-4 autoloaded implementation
    • Implements Psr\Log\LoggerInterface with Horde extensions
    • Structured logging with context arrays
    • Recommended for new code
    • Native systemd journal backend allows filtering on context attributes
  2. Legacy Logger (lib/, class prefix Horde_Log_)
    • PSR-0 autoloaded implementation
    • Original Horde logging API (based on Zend_Log)
    • Maintained for backward compatibility

Both implementations can interoperate:

Installation

Basic Usage

PSR-3 Logger (Recommended)

Legacy Logger

Handlers

Handler Legacy (lib/) Modern (src/) Notes
Stream Horde_Log_Handler_Stream StreamHandler Write to files or streams
Syslog Horde_Log_Handler_Syslog SyslogHandler System logger integration
Systemd Journal - SystemdJournalHandler Modern only - Native systemd journal with structured data
Scribe Horde_Log_Handler_Scribe ScribeHandler Apache Scribe logging
Firebug Horde_Log_Handler_Firebug FirebugHandler Browser console logging (deprecated)
CLI Horde_Log_Handler_Cli CliHandler Command-line output
Null Horde_Log_Handler_Null NullHandler Discard all logs
Mock Horde_Log_Handler_Mock MockHandler Testing purposes
PSR-3 Adapter - LoggerInterfaceHandler Modern only - Wrap any PSR-3 logger

Filters

Filter Legacy (lib/) Modern (src/) Notes
Minimum Level Horde_Log_Filter_Level MinimumLevelFilter Log at or above priority (legacy name: Level)
Maximum Level - MaximumLevelFilter Modern only - Log at or below priority
Exact Level Horde_Log_Filter_ExactLevel ExactLevelFilter Log only specific priority
Message Horde_Log_Filter_Message MessageFilter Regex-based message filtering
Constraint Horde_Log_Filter_Constraint ConstraintFilter Custom constraint logic
Suppress Horde_Log_Filter_Suppress SuppressFilter Suppress duplicate messages

Formatters

Formatter Legacy (lib/) Modern (src/) Notes
Simple Horde_Log_Formatter_Simple SimpleFormatter Template-based text formatting
PSR-3 - Psr3Formatter Modern only - PSR-3 {placeholder} interpolation
JSON Context - JsonContextFormatter Modern only - Append JSON-encoded context to message
Journald - JournaldContextFormatter Modern only - Systemd journal KEY=value fields
XML Horde_Log_Formatter_Xml XmlFormatter XML structured output
CLI Horde_Log_Formatter_Cli CliFormatter Colored terminal output

Timestamps

Each LogMessage carries a DateTimeImmutable record timestamp, accessible via $message->timestamp(). Formatters use this typed property directly:

To control the record timestamp, pass a DateTimeInterface in context:

Non-DateTimeInterface values (integers, strings) in context['timestamp'] are treated as opaque user data and do not affect the record time.

Upgrading

See doc/UPGRADING.md for migration guides from legacy API to PSR-3.

Requirements

License

BSD-2-Clause

Authors


All versions of log with dependencies

PHP Build Version
Package Version
Requires php Version ^8
psr/log Version ^3
horde/constraint Version ^3 || dev-FRAMEWORK_6_0
horde/exception Version ^3 || dev-FRAMEWORK_6_0
horde/util Version ^3 || dev-FRAMEWORK_6_0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package horde/log contains the following files

Loading the files please wait ...