Overview

Factory for a log adapter.

<?php
// example setup of a single adapter
$config = array(
    'adapter' => 'Solar_Log_Adapter_File',
    'events'  => '*',
    'file'    => '/path/to/file.log',
);
$log = Solar::factory('Solar_Log', $config);

// write/record/report/etc an event in the log.
// note that we don't do "priority levels" here, just
// class names and event types.
$log->save('class_name', 'event_name', 'message text');

Package

This class is part of the Solar_Log package.

Inheritance:

Configuration Keys

  • adapter: The adapter class to use, for example 'Solar_Log_Adapter_File'. Default is 'Solar_Log_Adapter_None'.

Constants

None.

Public Properties

The Solar_Log class has no public properties; try the list of all properties.

Public Methods

These are all the public methods in the Solar_Log class.

You can also view the list of all public, protected, and private methods.

__call()

Disallow all calls to methods besides factory() and the existing support methods.

__construct()

Constructor.

__destruct()

Default destructor; does nothing other than provide a safe fallback for calls to parent::__destruct().

dump()

Convenience method for getting a dump the whole object, or one of its properties, or an external variable.

factory()

Factory method for returning adapter objects.

locale()

Looks up class-specific locale strings based on a key.



Local