User Message in Log
-
Hi !
Here is a code snippet I use to write custom strings in the log, in order to display variable value.
if ( ! function_exists('write_log')) { function write_log ( $log ) { if ( is_array( $log ) || is_object( $log ) ) { error_log( print_r( $log, true ) ); } else { error_log( $log ); } } }
it used the WordPress error_log function.
It would be nice if this kind of User Message were displayed with another color. For the moment, there have the same color as PHP Deprectaed kind of message.
Would it be possible ?
Thanks ! ??
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘User Message in Log’ is closed to new replies.