$sql
$sql : \Pop\Db\Sql
Sql object
Db log writer class
$sql : \Pop\Db\Sql
Sql object
writeLog(mixed $level, string $message, array $context = array()) : \Pop\Log\Writer\Db
Write to the log
mixed | $level | |
string | $message | |
array | $context |
writeCustomLog(string $content) : \Pop\Log\Writer\Db
Write to a custom log
string | $content |
__construct(\Pop\Db\Sql $sql, string $table = null) : \Pop\Log\Writer\Db
Constructor
Instantiate the DB writer object
The DB table requires the following fields at a minimum: timestamp DATETIME level INT name VARCHAR message TEXT, VARCHAR, etc.
\Pop\Db\Sql | $sql | |
string | $table |