Commit 7807b5dd authored by Nico Alt's avatar Nico Alt

Delete unused logger class

parent 30513d8a
# Copyright (c) 2019 Nico Alt
# Copyright (c) 2014-2018 Cedric Bellegarde <>
# Copyright (c) 2017 Bilal Elmoussaoui <>
# SPDX-License-Identifier: AGPL-3.0-only
# License-Filename:
# Initial version based on GNOME Lollypop
import logging
import sys
from briar.gtk.define import App
class Logger:
FORMAT = "[%(levelname)-s] %(asctime)s %(message)s"
DATE = "%Y-%m-%d %H:%M:%S"
__log = None
APP = "app.briar.gtk"
def get_default():
if Logger.__log is None:
logger = logging.getLogger(Logger.APP)
handler = logging.StreamHandler(sys.stdout)
formater = logging.Formatter(Logger.FORMAT, Logger.DATE)
Logger.__log = logging.getLogger(Logger.APP)
return Logger.__log
def warning(msg, *args):
Logger.get_default().warning(msg, *args)
def debug(msg, *args):
if App().debug:
Logger.get_default().debug(msg, *args)
def info(msg, *args):
Logger.get_default().info(msg, *args)
def error(msg, *args):
Logger.get_default().error(msg, *args)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment