Last active
December 14, 2015 08:09
-
-
Save muumin/5055778 to your computer and use it in GitHub Desktop.
Log4PHPで日本時間で出力 = PHPのタイムゾーンを変更
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
date_default_timezone_set('Asia/Tokyo'); | |
require_once('/lib/log4php/Logger.php'); | |
Logger::configure('/conf/log4php.xml'); | |
$logger = Logger::getLogger(basename(__FILE__)); | |
$logger->debug('debug-log'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment