This class contains the main functionalities for the logging writer in CONTENIDO.
__construct(array $options)
array
Array with options for the writer instance (optional)
factory(string $writerName, array $writerOptions) : \cLogWriter
string
Name of the writer
array
Options array for the writer instance
\cInvalidArgumentException |
if the writer class with the given name does not exist or is not an instance of clogWriter |
---|
\cLogWriter
Log writer instancegetOption(string $option) : mixed
string
Name of the option
mixed
Value of the option entrygetOptions() : array
array
Array with all optionsremoveOption(string $option) : void
string
Name of the option
setOption(string $option, mixed $value, boolean $force) : void
If option was set previously, it must be forced to overwrite the value.
string
Name of the option
mixed
Value of the option
boolean
Flag to force setting the option value (optional, default: false)
setOptions(array $options) : void
array
Array with options
write(string $message, int $priority) : boolean
This method must be implemented in the specific writer.
string
Message to write
int
Priority of the log entry
boolean
State of the write process