def main(): logging.basicConfig(level=logging.INFO, format='%(levelname)s: %(message)s') logging.getLogger().addFilter(util.ColoredLoggingFilter()) options = ParseOptions() if options.verbose: logging.getLogger().setLevel(logging.DEBUG) ConvertFiles(options.svg_dir, options.output_dir)
def main(): logging.basicConfig(level=logging.INFO, format='%(levelname)s: %(message)s') logging.getLogger().addFilter(util.ColoredLoggingFilter()) options = ParseOptions() if options.build_log: logging.getLogger().handlers = [] logging.getLogger().addHandler(logging.FileHandler(options.build_log, 'w')) if options.verbose or options.build_log: logging.getLogger().setLevel(logging.DEBUG) ConvertFiles(options.svg_paths, options.output_dir)