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