diff options
author | Kenneth Katzgrau <kkatzgrau@mailservice.hangoutapp.com> | 2010-12-07 16:43:43 +0000 |
---|---|---|
committer | Kenneth Katzgrau <kkatzgrau@mailservice.hangoutapp.com> | 2010-12-07 16:43:43 +0000 |
commit | c00a85677152ebd0c8e1f3bdd33cccbea463e37c (patch) | |
tree | fb154a2a145468d810646869e5b44ca49bb31a6b /example/example.php | |
parent | cb8b85365f39d58dd4179ec0ff3aed2b25202677 (diff) | |
download | KLogger-c00a85677152ebd0c8e1f3bdd33cccbea463e37c.zip KLogger-c00a85677152ebd0c8e1f3bdd33cccbea463e37c.tar.gz KLogger-c00a85677152ebd0c8e1f3bdd33cccbea463e37c.tar.bz2 |
Fixed a major issue with the checking of the severity level. Special thanks to Tim Kinnane for pointing it out
Diffstat (limited to 'example/example.php')
-rwxr-xr-x | example/example.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/example/example.php b/example/example.php new file mode 100755 index 0000000..efbc317 --- /dev/null +++ b/example/example.php @@ -0,0 +1,15 @@ +<?php + +# Should log to the same directory as this file +require dirname(__FILE__) . '/../src/KLogger.php'; + +$log = KLogger::instance(dirname(__FILE__), KLogger::DEBUG); + +$log->logInfo('Info Test'); +$log->logNotice('Notice Test'); +$log->logWarn('Warn Test'); +$log->logError('Error Test'); +$log->logFatal('Fatal Test'); +$log->logAlert('Alert Test'); +$log->logCrit('Crit test'); +$log->logEmerg('Emerg Test'); |