This Is A Custom Widget

This Sliding Bar can be switched on or off in theme options, and can take any widget you throw at it or even fill it with your custom HTML Code. Its perfect for grabbing the attention of your viewers. Choose between 1, 2, 3 or 4 columns, set the background color, widget divider color, activate transparency, a top border or fully disable it on desktop and mobile.

This Is A Custom Widget

This Sliding Bar can be switched on or off in theme options, and can take any widget you throw at it or even fill it with your custom HTML Code. Its perfect for grabbing the attention of your viewers. Choose between 1, 2, 3 or 4 columns, set the background color, widget divider color, activate transparency, a top border or fully disable it on desktop and mobile.
2 05, 2009

error_log

By | 2009-05-15T23:15:05+00:00 May 2nd, 2009|Categories: PHP, Ruby|Tags: , , , |Comments Off on error_log

The error_log() function sends an error message to the web server’s error log, a TCP port or to a file (usually the web server’s error log).

PHP

error_log('My error message');
// => My error message

error_log() is probably one of the most common and convenient ways to debug PHP scripts, without having to install a full PHP debugger. As such, it is very popular with developers, often logging variables part way through a script, to see if the values are what they expect. Although Ruby doesn’t provide such a convenient global function, it does provide the Logger class which is much more powerful.

Ruby

require('Logger');
Logger.new('/var/log/httpd/error.log').error('My error message');
# => ERROR -- : My error message