from __future__ import print_function, division, absolute_import
from fontTools.misc.py23 import *
import logging

# add a do-nothing handler to the libary's top-level logger, to avoid
# "no handlers could be found" error if client doesn't configure logging
log = logging.getLogger(__name__)
log.addHandler(logging.NullHandler())

# clients may call this to configure logging with a predefined handler and format
from fontTools.misc.loggingTools import configLogger

version = "3.0"

__all__ = ["version", "log", "configLogger"]

from __future__ import print_function, division, absolute_import
from fontTools.misc.py23 import *
import logging
from fontTools.misc.loggingTools import Logger, configLogger

# set the logging.Logger class to one which supports the "last resort" handler,
# to be used when the client doesn't explicitly configure logging.
# It prints the bare message to sys.stderr, only for events of severity WARNING
# or greater.
logging.setLoggerClass(Logger)

log = logging.getLogger(__name__)

version = "3.0"

__all__ = ["version", "log", "configLogger"]

use 'lastResort' handler instead of NullHandler