Setting up and using Python's logging framework.

It's dubious whether logging.basicConfig() should be called here, so
that call will probably be moved somewhere else.
This commit is contained in:
2016-03-15 13:47:21 +01:00
parent e32d7de7a6
commit 0174c28075
4 changed files with 29 additions and 8 deletions

View File

@@ -42,6 +42,8 @@ if 'pillar' in locals():
else:
from . import pillar, async_loop, gui
import logging
import bpy
from bpy.types import AddonPreferences, Operator, WindowManager
from bpy.props import StringProperty
@@ -145,6 +147,8 @@ def register():
name="Blender Cloud node UUID",
default='') # empty == top-level of project
logging.basicConfig(level=logging.INFO,
format='%(asctime)-15s %(levelname)8s %(name)s %(message)s')
gui.register()