Permalink
Browse files

Add GitHub PHP syntax highlighting to example

  • Loading branch information...
1 parent abc80e0 commit acd05ec2880ecb372805e46b0c9471afef1b9a83 @msabramo msabramo committed Apr 26, 2012
Showing with 12 additions and 8 deletions.
  1. +12 −8 README.mdown
View
@@ -6,16 +6,20 @@ Monolog - Logging for PHP 5.3
Usage
-----
- use Monolog\Logger;
- use Monolog\Handler\StreamHandler;
+```php
+<?php
- // create a log channel
- $log = new Logger('name');
- $log->pushHandler(new StreamHandler('path/to/your.log', Logger::WARNING));
+use Monolog\Logger;
+use Monolog\Handler\StreamHandler;
- // add records to the log
- $log->addWarning('Foo');
- $log->addError('Bar');
+// create a log channel
+$log = new Logger('name');
+$log->pushHandler(new StreamHandler('path/to/your.log', Logger::WARNING));
+
+// add records to the log
+$log->addWarning('Foo');
+$log->addError('Bar');
+```
Core Concepts
-------------

0 comments on commit acd05ec

Please sign in to comment.