\Pop\Log\WriterFile

File log writer class

Summary

Methods
Properties
Constants
writeLog()
getContext()
__construct()
No public properties found
No constants found
No protected methods found
$file
$type
N/A
No private methods found
No private properties found
N/A

Properties

$file

$file : string

Log file

Type

string

$type

$type : string

Log file type

Type

string

Methods

writeLog()

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

Write to the log

Parameters

mixed $level
string $message
array $context

Returns

\Pop\Log\Writer\File

getContext()

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

Get context for log

Parameters

array $context

Returns

string

__construct()

__construct(string  $file) 

Constructor

Instantiate the file writer object

Parameters

string $file