in

My first logger. How did I do?

My first logger. How did I do? | class-memes, __init__-memes | ProgrammerHumor.io
class-memes, __init__-memes | ProgrammerHumor.io

Content

class Logger: def init(self, logfile): self.fd-open(logfile, "a") def log (self msg) : try: eval(msg) except: DaSS self. fd.write(msg ‘n’)