Permalink
Browse files

Update README.md

  • Loading branch information...
1 parent 1550ba4 commit 90f7f1979efc5ee4d5e4fee49424fdd2b72d9b51 @lemanyk committed Dec 27, 2012
Showing with 10 additions and 1 deletion.
  1. +10 −1 README.md
View
@@ -11,6 +11,11 @@ from netlog import Server
Server('./logs', 5010).start()
```
+Params:
+* path - directory for logs
+* port - listen tcp port
+* host='0.0.0.0' - listen host
+
If you don't need blocking in .start() line:
```
Server('./logs', 5010).start(blocking=False)
@@ -32,6 +37,10 @@ client.send('ert\n dfg') # may be multiline
client.close() # or del client
```
+Params:
+* host - host, where is log server runned
+* port - tcp port for connect
+* filename - file to write log strings
Features:
---------
@@ -45,7 +54,7 @@ Features:
TODO:
-----
-+ realize rotator :)
++ realize rotator and binary logs :)
+ fetch Ctrl+C and -9 signals for flush before exit
+ udp transfer (maybe, only after v1.0)
+ implement logging.handlers.SocketHandler protocol (maybe, only after v1.0)

0 comments on commit 90f7f19

Please sign in to comment.