mirror of
https://github.com/cunnymessiah/keychecker.git
synced 2026-05-11 10:50:12 -07:00
15 lines
270 B
Python
15 lines
270 B
Python
import sys
|
|
|
|
|
|
class Logger:
|
|
def __init__(self, filename):
|
|
self.console = sys.stdout
|
|
self.file = open(filename, 'a')
|
|
|
|
def write(self, message):
|
|
self.console.write(message)
|
|
self.file.write(message)
|
|
|
|
def flush(self):
|
|
pass
|