Skip to content

Instantly share code, notes, and snippets.

@tzuryby
Created February 27, 2011 07:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tzuryby/845994 to your computer and use it in GitHub Desktop.
Save tzuryby/845994 to your computer and use it in GitHub Desktop.
tzury@precision:~/devel/tornadolog$ cat /dev/urandom | hexdump > /tmp/largefile.log
^C
tzury@precision:~/devel/tornadolog$ ls -lh /tmp/largefile.log
-rw-r--r-- 1 tzury tzury 131M 2011-02-27 09:50 /tmp/largefile.log
tzury@precision:~/devel/tornadolog$
tzury@precision:~/devel/tornadolog$ ./tornadolog.py
[I 110227 09:50:37 tornadolog:64] TornadoLog started. Point your browser to http://localhost:7777/tail
[I 110227 09:50:49 tornadolog:14] Info
[I 110227 09:50:49 web:756] 200 GET / (127.0.0.1) 0.78ms
[I 110227 09:50:56 tornadolog:14] Info
[I 110227 09:50:56 web:756] 200 GET / (127.0.0.1) 0.43ms
[I 110227 09:51:07 tornadolog:29] Scheduler started
tzury@precision:/media/stripe_/devel/tornadolog$ wget -O - http://localhost:7777/
--2011-02-27 09:50:56-- http://localhost:7777/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:7777... failed: Connection refused.
Connecting to localhost|127.0.0.1|:7777... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7 [text/html]
Saving to: `STDOUT'
0% [ ] 0 --.-K/s R100%[=====================================================================================================>] 7 --.-K/s in 0s
2011-02-27 09:50:56 (1.10 MB/s) - written to stdout [7/7]
tzury@precision:/media/stripe_/devel/tornadolog$ wget -O - http://localhost:7777/tail
--2011-02-27 09:51:07-- http://localhost:7777/tail
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:7777... failed: Connection refused.
Connecting to localhost|127.0.0.1|:7777... connected.
HTTP request sent, awaiting response...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment