Log class
package | Default |
---|
debug(string $msg, mixed $obj = null
) : void
string
message
mixed
object
error(string $msg, mixed $obj = null
) : void
string
message
mixed
object
info(string $msg, mixed $obj = null
) : void
string
message
mixed
object
init(string $logName= 'app'
, integer $logLevel= self::LEVEL_DEBUG
) : void
string
log name, the default is 'app'
integer
log level, the default is LEVEL_DEBUG
warn(string $msg, mixed $obj = null
) : void
string
message
mixed
object
buildLog(string $level, string $msg, mixed $obj) : string
string
level name
string
message
mixed
object
string
logswrite(string $level, string $msg, mixed $obj) : void
string
level name
string
message
mixed
object
$logLevel : integer
$logName : string
LEVEL_DEBUG = 10
LEVEL_ERROR = 40
LEVEL_INFO = 20
LEVEL_WARN = 30