\JLogLoggerFormattedtext
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.
Synopsis
class JLogLoggerFormattedtext
extends JLogLogger
{
- // Inherited members from JLogLogger
- protected $options;
- protected $priorities;
- // methods
- public void __construct()
- public void __destruct()
- public boolean addEntry()
- protected string generateFileHeader()
- protected void initFile()
- protected void parseFields()
- // Inherited methods from JLogLogger
- public void __construct()
- public abstract void addEntry()
Hierarchy
Extends
Extended by
Members
protected
- $fields — array
- $file — resource
- $format — string
- $options
—
array
Options array for the JLog instance. - $path — string
- $priorities — array
Methods
protected
- generateFileHeader() — Method to generate the log file header.
- initFile() — 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.
- parseFields() — Method to parse the format string into an array of fields.
public
- __construct() — Constructor.
- __destruct() — Destructor.
- addEntry() — Method to add an entry to the log.
Inherited from JLogLogger
public
- addEntry() — Method to add an entry to the log.