Add an author line and a basic LogSink.
This commit is contained in:
parent
c1b5b29b36
commit
f414f29a56
|
@ -1,6 +1,8 @@
|
|||
"""Defines the anvil logging module.
|
||||
"""
|
||||
|
||||
__author__ = 'joshharrison@google.com'
|
||||
|
||||
from anvil import enums
|
||||
from anvil import util
|
||||
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
"""Defines a package containing LogSink implementations.
|
||||
"""
|
||||
|
||||
__author__ = 'joshharrison@google.com'
|
||||
|
||||
|
||||
class PrintLogSink(object):
|
||||
"""A very basic LogSink that simply prints to stdout.
|
||||
"""
|
||||
def log(self, message):
|
||||
print '%s %s' % (message[1], message[3])
|
Loading…
Reference in New Issue