[ Index ] |
PHP Cross Reference of YOURLS |
[Source view] [Print] [Project Stats]
Custom logger for YOURLS that logs debug messages and queries.
File Size: | 108 lines (4 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
Logger:: (3 methods):
log()
getMessages()
pretty_format()
log($level, $message, array $context = []) X-Ref |
Logs a message. return: void param: string $level The log level (ie type of message) param: string $message The log message. param: array $context Data to interpolate into the message. |
getMessages() X-Ref |
Returns the logged messages. return: array |
pretty_format($statement, array $values = array() X-Ref |
Format PDO statement with bind/values replacement This replaces PDO binds such as 'key_name = :name' with corresponding array values, eg array('name'=>'some value') This is merely a cosmetic replacement to allow for readability: the result WILL NOT be valid SQL! (eg no proper quotes) since: 1.7.3 return: string Readable SQL query with placeholders replaced param: string $statement SQL query with PDO style named placeholders param: array $values Optional array of values corresponding to placeholders |
Generated: Tue Jan 21 05:10:11 2025 | Cross-referenced by PHPXref 0.7.1 |