k2hpx_set_debug_file
Writes log to the file
Description
bool k2hpx_set_debug_file ( string $filepath )
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(k2hpx_set_debug_file("/tmp/k2h.log"));
?>
The above example will output:
NULL
See Also
- k2hpx_bump_debug_level - Changes the log level
- k2hpx_set_debug_level_error - Sets log level to error
- k2hpx_set_debug_level_message - Sets log level to info
- k2hpx_set_debug_level_silent - Stops logging
- k2hpx_set_debug_level_warning - Sets log level to warning
- k2hpx_unset_debug_file - Writes logs to stderr