class SophLogger:
    def __init__(self, fileName):
        self.handle = open(fileName, "a")

    def __call__(self, something):
        try:
            text = "{0}\n".format(something)
            self.handle.write(text)
            self.handle.flush()
            print (text.strip())
        except:
            pass
f89de8771ac1ff67e1125c2f927fa92dfcae6d9a
<mask token>

class SophLogger:
    <mask token>
    <mask token>

class SophLogger:
    <mask token>

    def __call__(self, something):
        try:
            text = '{0}\n'.format(something)
            self.handle.write(text)
            self.handle.flush()
            print(text.strip())
        except:
            pass

class SophLogger:

    def __init__(self, fileName):
        self.handle = open(fileName, 'a')

    def __call__(self, something):
        try:
            text = '{0}\n'.format(something)
            self.handle.write(text)
            self.handle.flush()
            print(text.strip())
        except:
            pass

class SophLogger:
    def __init__(self, fileName):
        self.handle = open(fileName, "a")

    def __call__(self, something):
        try:
            text = "{0}\n".format(something)
            self.handle.write(text)
            self.handle.flush()
            print (text.strip())
        except:
            pass