| [ 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, string|\Stringable $message, array $context = []) X-Ref |
| Logs a message. 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. return: void |
| 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) param: string $statement SQL query with PDO style named placeholders param: array $values Optional array of values corresponding to placeholders since: 1.7.3 return: string Readable SQL query with placeholders replaced |
| Generated: Wed Nov 26 05:10:06 2025 | Cross-referenced by PHPXref 0.7.1 |