powered by nequal

log4php_appenders_LoggerAppenderTweet / trunk/example.php

Subversion URL: http://svn.openpear.org/log4php_appenders_LoggerAppenderTweet/trunk/example.php

Recent change

yokkuns [1650] -- 2010-02-18 06:14:44
first import

<?php
/**
 * example log4php_appenders_LoggerAppenderTweet
 * 
 * 
 * @author yokkuns<yokkuns@tkul.jp>
 * @version 0.0.1
 */
 
define('LOG4PHP_CONFIGURATION', './test.properties');
define('LOG4PHP_TWITTER_ID', '******');
define('LOG4PHP_TWITTER_PASSWORD', '********');
require_once 'log4php/LoggerManager.php';
 
$logger = LoggerManager::getLogger('test');
 
$logger->debug('debug message');
$logger->info('info message');
$logger->warn('warn message');
$logger->error('error message');
$logger->fatal('fatal message');
?>