Skip to content

Instantly share code, notes, and snippets.

@muumin
Last active December 14, 2015 08:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muumin/5055778 to your computer and use it in GitHub Desktop.
Save muumin/5055778 to your computer and use it in GitHub Desktop.
Log4PHPで日本時間で出力 = PHPのタイムゾーンを変更
<?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