Permalink
Browse files

Bundle sample log file on classpath.

  • Loading branch information...
1 parent 5c35aa7 commit ba19e404151cd59883186a3b40b683720dbb094a @technomancy committed Sep 6, 2009
Showing with 3,196 additions and 2 deletions.
  1. +4 −2 src/sketchbook/log.clj
  2. +3,192 −0 src/sketchbook/sample.log
View
@@ -6,8 +6,10 @@
(:import [java.util Date]))
;; Point this at a web server log file!
-(def lines
- (atom (line-seq (reader "/home/phil/documents/logs/access.log"))))
+(def lines (atom (line-seq (reader (.getResourceAsStream
+ (.getContextClassLoader
+ (Thread/currentThread))
+ "sketchbook/sample.log")))))
(def last-time (atom false))
Oops, something went wrong.

0 comments on commit ba19e40

Please sign in to comment.