Skip to content

Commit 07a6e93

Browse files
Kyle-VerhoogEmanuele Palazzetti
authored andcommitted
[core] configure the root logger (#536)
1 parent 90ba860 commit 07a6e93

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ddtrace/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import logging
12
from .monkey import patch, patch_all
23
from .pin import Pin
34
from .span import Span
@@ -6,6 +7,10 @@
67

78
__version__ = '0.12.1'
89

10+
# configure the root logger
11+
logging.basicConfig()
12+
log = logging.getLogger(__name__)
13+
914
# a global tracer instance with integration settings
1015
tracer = Tracer()
1116
config = Config()

0 commit comments

Comments
 (0)