ILogWriter

Interface for Logger.
Source
ILogWriter.php
Implementations
LogCsv , LogText

Methods

__construct

ILogWriter $obj = new ILogWriter(string objectName)

Create and config a log writer instance.

Arguments

    objectName (string)
    The name of log writer object, normally you define a logger in the application's config array or ini file, then you access the logger object using the name specified for it there

Returns

void

write

void $obj->write(string level, title title, string | array comment)

Write log. Use the static methods of ILog instead of using this method directly.

Arguments

    level (string)
    Log level e.g. Error or Warn or Info or etc.
    title (title)
    Log title
    comment (string | array)
    Comment to be written to the log

Returns

void