W3c

Extends \Joomla\Log\Logger\Formattedtext

Joomla! W3C Logging class

deprecated

This class is designed to build log files based on the W3c specification at: http://www.w3.org/TR/WD-logfile.html

since

1.0

deprecated

The joomla/log package is deprecated

Methods

__construct

Constructor.

__construct(array &$options) 
inherited
since

1.0

Arguments

$options

array

__destruct

Destructor.

__destruct() 
inherited
since

1.0

addEntry

Method to add an entry to the log.

addEntry(\Joomla\Log\LogEntry $entry) : void
inherited abstract
since

1.0

Arguments

$entry

\Joomla\Log\LogEntryThe log entry object to add to the log.

generateFileHeader

Method to generate the log file header.

generateFileHeader() : string
inherited
since

1.0

Response

stringThe 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.

initFile() : void
inherited
since

1.0

throws

\RuntimeException

parseFields

Method to parse the format string into an array of fields.

parseFields() : void
inherited
since

1.0

Properties

format

The format for which each entry follows in the log file. All fields must be named in all caps and be within curly brackets eg. {FOOBAR}.

inherited
since

1.0

Type(s)

string

file

The file pointer for the log file.

inherited
since

1.0

Type(s)

resource

fields

The parsed fields from the format string.

inherited
since

1.0

Type(s)

array

path

The full filesystem path for the log file.

inherited
since

1.0

Type(s)

string

options

Options array for the Log instance.

inherited
since

1.0

Type(s)

array

priorities

Translation array for LogEntry priorities to text strings.

inherited
since

1.0

Type(s)

array