Skip to content
Browse files

trying to get some source code highlighting

  • Loading branch information...
1 parent ed8028b commit d5b1846cd5c9dfb41f4665228880aa5ccff09087 @rosejn committed Apr 21, 2011
Showing with 27 additions and 27 deletions.
  1. +27 −27 README.md
View
54 README.md
@@ -7,38 +7,38 @@ and channels can be connected to various output mechanisms such as the console o
## Usage
-(require '[logjam.core :as log])
-
-; Create a log channel named :foo
-(log/channel :foo)
-
-; Create another log channel :bar, that is a child of :foo.
-; All messages sent to bar will be forward up to :foo also.
-(log/channel :bar :foo)
-
-; Output channel :foo to the console
-(log/console :foo)
-
-; Output channel :bar to a file
-(log/file :bar "example.log")
-
-; Send some log messages
-(log/to :foo "log message...")
-(log/to :foo "log message..." 1 2 3)
-(log/to :bar "another log message...")
-
-(defn foo
- [a b]
- (+ a b))
-
-; spy can be used to log the execution of expressions
-(log/spy :foo (foo 1 2))
+ (require '[logjam.core :as log])
+
+ ; Create a log channel named :foo
+ (log/channel :foo)
+
+ ; Create another log channel :bar, that is a child of :foo.
+ ; All messages sent to bar will be forward up to :foo also.
+ (log/channel :bar :foo)
+
+ ; Output channel :foo to the console
+ (log/console :foo)
+
+ ; Output channel :bar to a file
+ (log/file :bar "example.log")
+
+ ; Send some log messages
+ (log/to :foo "log message...")
+ (log/to :foo "log message..." 1 2 3)
+ (log/to :bar "another log message...")
+
+ (defn foo
+ [a b]
+ (+ a b))
+
+ ; spy can be used to log the execution of expressions
+ (log/spy :foo (foo 1 2))
## Installation
Add this to your project.clj:
-[logjam "0.1.0-SNAPSHOT"]
+ [logjam "0.1.0-SNAPSHOT"]
## License

0 comments on commit d5b1846

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