Cradle
0.3.3
Simple library for creating Web-based applications
|
Public Member Functions | |
__construct ($destination=null) | |
init ($destination=1) | |
save ($message) | |
getMessages () | |
getLastMessage () | |
Protected Attributes | |
$destination | |
$buffer = [] | |
This class is designed to save log messages.
__construct | ( | $destination = null | ) |
getLastMessage | ( | ) |
Returns data of the last message
getMessages | ( | ) |
Returns an array of log messages.
init | ( | $destination = 1 | ) |
Init the class
int | string | $destination | Defines a log destination Possible values: false - no log; 1 - log to buffer; 2 - log to STDIN; filename - log to file; |
save | ( | $message | ) |
Save a message
mixed | $message | The log message of any type. |
|
protected |
array The default buffer to save messages
|
protected |
mixed Defines a log destination.