Skip to content
Browse files

Added README file

  • Loading branch information...
1 parent 7239b52 commit 2ff85ba4721a1fd3ab5b77cc7e9778945dcf95de @Seldaek committed
Showing with 46 additions and 0 deletions.
  1. +46 −0 README.mdown
View
46 README.mdown
@@ -0,0 +1,46 @@
+Monolog - Logging for PHP 5.3
+=============================
+
+Usage
+-----
+
+ use Monolog\Logger;
+ use Monolog\Log;
+ use Monolog\Writer\FileWriter;
+ use Monolog\Formatter\SimpleFormatter;
+
+ // create a log with writers/formatters
+ $writer = new FileWriter('path/to/your.log');
+ $writer->setFormatter(new SimpleFormatter());
+ $log = new Log('name', Logger::WARN, $writer);
+
+ // create a logger with one or more logs
+ $logger = new Logger(array($log));
+
+ // write to all logs
+ $logger->warn('Foo');
+
+ // write only to the 'name' log
+ $logger->error('Bar', 'name');
+
+Todo
+----
+
+- Log rotation for FileWriter
+- FirePHP writer
+- Syslog writer
@stof
stof added a note

If you want to provide a MonologBundle to replace the ZF dependency you will also need an array writer to keep the logs availeble in the profiler.

@Seldaek Owner
Seldaek added a note

Yeah I plan a big rewrite of everything anyway - more to come next week I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+
+Author
+------
+
+Jordi Boggiano - <j.boggiano@seld.be> - <http://twitter.com/seldaek>
+
+License
+-------
+
+Monolog is licensed under the New BSD License - see the LICENSE file for details
+
+Requirements
+------------
+
+Any flavor of PHP5.3 should do

0 comments on commit 2ff85ba

Please sign in to comment.
Something went wrong with that request. Please try again.