This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
opensearch-python-handler
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Oops, add forgotten logger
opensearch
nir0s
7 years ago
parent
9da3e76b08
commit
b0120dd869
1 changed files
with
9 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+9
-0
logzio/logger.py
+ 9
- 0
logzio/logger.py
View File
@ -0,0 +1,9 @@
import
sys
import
logging
def
get_logger
(
debug
)
:
logger
=
logging
.
getLogger
(
__name__
)
logger
.
setLevel
(
logging
.
DEBUG
if
debug
else
logging
.
INFO
)
logger
.
addHandler
(
logging
.
StreamHandler
(
sys
.
stdout
)
)
return
logger
Write
Preview
Loading…
Cancel
Save