Skip to content

Commit

Permalink
add usage in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lemanyk committed Dec 26, 2012
1 parent 6028be3 commit cec1266
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion README.md
@@ -1,4 +1,33 @@
logger
======

logging server written on gevent
logging server written on gevent


Run log server:
---------------
```
from netlog import Server
Server('./logs', 5010).start()
```


Usage from clients:
-------------------
```
from netlog import Client
client = Client('127.0.0.1', 5010, 'logname')
client.send('qwe asd')
client.send('ert \n dfg') # may be multiline
client.close() # or del client
```


Features:
---------

- put to one log file from many client processes
- save in binary format .tar.gz, use zcat and zgrep and for read
- unlimited size of log string
- rotation by date
- automatic delete old logs

0 comments on commit cec1266

Please sign in to comment.