function cdn_log in CDN 5
Simple logging function for sync plugin debugging purposes only.
Parameters
$message: The message to log. The current time will be prepended automatically.
3 calls to cdn_log()
- ftp_cdn_cron_perform_sync in sync_plugins/
ftp.inc - Implementation of pseudo-hook hook_cdn_cron_perform_sync().
- _ftp_cdn_cron_sync_deletion in sync_plugins/
ftp.inc - _ftp_cdn_get_filelist in sync_plugins/
ftp.inc
File
- ./
cdn_cron.inc, line 151 - Basic functions for CDN synchronization cron.
Code
function cdn_log($message) {
$output = 'console';
if (DEBUG_OUTPUT !== FALSE) {
$output = DEBUG_OUTPUT;
}
if (DEBUG) {
$time = '[' . date('H:i:s') . '] ';
switch ($output) {
case 'html':
ob_start();
print '<pre>' . $time . $message . "</pre>\n";
ob_flush();
break;
case 'console':
default:
print $time . $message . "\n";
break;
}
}
}