chmpxpx_set_debug_file
Writes log to the file
Description
function chmpxpx_set_debug_file(string $filepath): bool {}
Writes log to the file.
Parameters
- filepath
- Specifies path to the file where to write logs.
Return Values
Returns true on success or false on failure.
Examples
- Example 1 - Write log to a file
<?php
var_dump(chmpxpx_set_debug_file("/tmp/chmpx.log"));
?>
The above example will output:
NULL
See Also
- chmpxpx_bump_debug_level - Changes the log level
- chmpxpx_set_debug_level_error - Sets log level to error
- chmpxpx_set_debug_level_message - Sets log level to info
- chmpxpx_set_debug_level_silent - Stops logging
- chmpxpx_set_debug_level_warning - Sets log level to warning
- chmpxpx_unset_debug_file - Writes logs to stderr