Add an author line and a basic LogSink.

This commit is contained in:
Joshua Harrison 2014-12-28 21:01:35 -08:00
parent c1b5b29b36
commit f414f29a56
2 changed files with 13 additions and 0 deletions

View File

@ -1,6 +1,8 @@
"""Defines the anvil logging module. """Defines the anvil logging module.
""" """
__author__ = 'joshharrison@google.com'
from anvil import enums from anvil import enums
from anvil import util from anvil import util

11
anvil/log_sink.py Normal file
View File

@ -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])