FormattedtextLogger
class FormattedtextLogger extends Logger
Joomla! Formatted Text File Log class
This class is designed to use as a base for building formatted text files for output. By default it emulates the Syslog style format output. This is a disk based output format.
Properties
protected array
Since: 3.0.1
|
$options | Options array for the Log instance. |
from Logger |
protected array
Since: 3.0.1
|
$priorities | Translation array for LogEntry priorities to text strings. |
from Logger |
protected string
Since: 1.7.0
|
$format | The format which each entry follows in the log file. |
|
protected array
Since: 1.7.0
|
$fields | The parsed fields from the format string. |
|
protected string
Since: 1.7.0
|
$path | The full filesystem path for the log file. |
|
protected bool
Since: 3.9.0
|
$defer | If true, all writes will be deferred as long as possible. |
|
protected array
Since: 3.9.0
|
$deferredEntries | If deferring, entries will be stored here prior to writing. |
Methods
Constructor.
If deferred, write all pending logs.
Prevent object injection attacks by suppressing unserialization of instance with deferred rows
Method to generate the log file header.
Method to initialise the log file. This will create the folder path to the file if it doesn't already exist and also get a new file header if the file doesn't already exist. If the file already exists it will simply open it for writing.
Method to parse the format string into an array of fields.
Details
__wakeup()
Prevent object injection attacks by suppressing unserialization of instance with deferred rows