~vomun-developers/anonplus/vomun-trunk

« back to all changes in this revision

Viewing changes to src/libs/logs.py

  • Committer: AJ00200
  • Date: 2011-11-26 00:03:57 UTC
  • Revision ID: git-v1:f4f4352eb338a5f57a5a92e4bf23bec36d298d13
Blocks we receive are now stored in ~/.vomun/blocks.json. libs.globals and libs.config are now used directly after importing libs; they are set in libs/__init__.py now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
import libs.events
2
2
OUTPUT = True
3
3
 
4
 
import libs.globals
5
 
 
6
4
 
7
5
class Logger(libs.events.Handler):
8
6
    '''Print events as they happen. TODO: Write to a log file'''
20
18
        if OUTPUT:
21
19
            print('[*] %s' % message)
22
20
 
23
 
#libs.globals.global_vars['logger'] = Logger()
24
21
libs.events.register_handler(Logger())
 
 
b'\\ No newline at end of file'