\Pop\Log\WriterWriterInterface

Log writer interface

Summary

Methods
Constants
setLogLimit()
getLogLimit()
hasLogLimit()
isWithinLogLimit()
writeLog()
getContext()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

setLogLimit()

setLogLimit(integer  $level) : \Pop\Log\Writer\WriterInterface

Set log limit

Parameters

integer $level

Returns

\Pop\Log\Writer\WriterInterface

getLogLimit()

getLogLimit() : integer

Get log limit

Returns

integer

hasLogLimit()

hasLogLimit() : boolean

Has log limit

Returns

boolean

isWithinLogLimit()

isWithinLogLimit(integer  $level) : boolean

Check if a log level is within the set log level limit

Parameters

integer $level

Returns

boolean

writeLog()

writeLog(mixed  $level, string  $message, array  $context = array()) : \Pop\Log\Writer\WriterInterface

Write to the log

Parameters

mixed $level
string $message
array $context

Returns

\Pop\Log\Writer\WriterInterface

getContext()

getContext(array  $context = array()) : string

Determine

Parameters

array $context

Returns

string