Overview

Log adapter to echo messages directly.

Package

This class is part of the Solar_Log package.

Inheritance:

Configuration Keys

  • events: The event types this instance should recognize; a comma-separated string of events, or a sequential array. Default is all events ('*').

  • microtime: Use timestamps with decimal microseconds. Default false.

  • format: The line format for each saved event. Use '%t' for the timestamp, '%c' for the class name, '%e' for the event type, '%m' for the event description, and '%%' for a literal percent. Default is '%t %c %e %m'.

  • output: Output mode. Set to 'html' for HTML; or 'text' for plain text. Default autodetects by SAPI version.

Constants

None.

Public Properties

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

Public Methods

These are all the public methods in the Solar_Log_Adapter_Echo class.

You can also view the list of all public, protected, and private 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.

getEvents()

Gets the list of events this adapter recognizes.

locale()

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

save()

Saves (writes) an event and message to the log.

setEvents()

Sets the list of events this adapter recognizes.



Local