FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-webuntis/webuntis/utils/logger.py at 0.1.12 · python-webuntis/python-webuntis · GitHub
python-webuntis
/
python-webuntis
Public
Notifications
You must be signed in to change notification settings
Fork
21
Star
81
Code
Issues
4
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-webuntis
/
webuntis
/
utils
/
logger.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
19 lines (14 loc) · 497 Bytes
Breadcrumbs
python-webuntis
/
webuntis
/
utils
/
logger.py
Copy path
File metadata and controls
19 lines (14 loc) · 497 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""
This file is part of python-webuntis
:copyright: (c) 2012 by Markus Unterwaditzer.
:license: BSD, see LICENSE for more details.
"""
_logger
=
None
def
log
(
level
,
message
,
*
args
,
**
kwargs
):
"""Log a message to the logger used. Written inside a function so it can be
overridden if really necessary."""
global
_logger
if
_logger
is
None
:
import
logging
_logger
=
logging
.
getLogger
(
'webuntis'
)
getattr
(
_logger
,
level
)(
message
,
*
args
,
**
kwargs
)
Back
|
FazBrowse Home
|
New Git URL