Skip to content

Commit 704a828

Browse files
committed
commented custom log
1 parent ff067cd commit 704a828

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

ngcsimlib/logger.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,23 @@ def debug(msg):
163163

164164
@_concatArgs
165165
def custom_log(msg, logging_level=None):
166+
"""
167+
Logs to a user defined logging level. This will only work for user defined
168+
levels if a builtin logging level is desired please use on of the builtin
169+
logging methods found in this file. To defined logging levels add them to the
170+
configuration file of your project. To add levels here add the map of
171+
`logging_levels` to the top level logging object and have the key be the new
172+
logging level name, and the value be the numerical logging value. To see all
173+
build in logging levels look at the builtin python logger package.
174+
175+
176+
This is decorated to have the same functionality of python's print argument concatenation
177+
178+
Args:
179+
msg: The message to log
180+
181+
logging_level: The user defined logging level.
182+
"""
166183
if isinstance(logging_level, str):
167184
logging_level = logging_level.upper()
168185

0 commit comments

Comments
 (0)