Permalink
Browse files

Merge branch 'feature'

  • Loading branch information...
2 parents ea50e2c + 429e72f commit 28472526071ae242d2d9db0fd45617934d6680d5 @SqrTT committed May 13, 2012
Showing with 446 additions and 410 deletions.
  1. +1 −0 .gitignore
  2. +12 −12 README.markdown
  3. +1 −1 example/example.php
  4. +432 −397 src/KLogger.php
View
@@ -2,3 +2,4 @@ src/test.php
test/
test/*
test.php
+example/log*
View
@@ -1,8 +1,8 @@
# KLogger: A Simple Logging Class For PHP
-A project written by Kenny Katzgrau and originally hosted at
-[CodeFury.net](http://codefury.net/projects/klogger/). This marks the
-development of a newer version of KLogger.
+A project written by Kenny Katzgrau and modifed by SqrTT
+
+
## About
@@ -16,13 +16,20 @@ saying 'thanks' and asking me to add features.
This github project will host the development of the next version of KLogger.
The original version of KLogger is tagged as version 0.1, and is available for
-download [here](http://github.com/katzgrau/KLogger/downloads).
+download [here](https://github.com/SqrTT/KLogger).
## Basic Usage
$log = new KLogger('/var/log/'); # Specify the log directory
$log->logInfo('Returned a million search results'); //Prints to the log file
$log->logFatal('Oh dear.'); //Prints to the log file
+
+ for using writing to syslog
+ $log = new KLogger();
+ $log->logInfo('Hello, all')
+
+ or use singleton
+ $log = KLogger::instance(KLogger:USE_SYSLOG, KLogger::DEBUG);
## Goals
@@ -44,14 +51,7 @@ Klogger has been used in projects at:
* The New Jersey Institute of Technology
* Middlesex Hospital in NJ
-Additionally, it's been used in numerous projects, both commercial and personal.
-
-## Special Thanks
-
-Special thanks to all contributors, which right now includes two people:
-
-[Tim Kinnane](http://twitter.com/etherealtim)
-[Brian Fenton](http://github.com/fentie)
+Additionally, it's been used in numerous projects, both commercial and personal
## License
View
@@ -3,7 +3,7 @@
# Should log to the same directory as this file
require dirname(__FILE__) . '/../src/KLogger.php';
-$log = KLogger::instance(dirname(__FILE__), KLogger::DEBUG);
+$log = KLogger::instance();
$log->logInfo('Info Test');
$log->logNotice('Notice Test');
Oops, something went wrong.

0 comments on commit 2847252

Please sign in to comment.