Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 031e9f1

Browse files
committedNov 14, 2017
Merge branch 'master' of https://github.com/welir/Python-Logger
2 parents 1f2cf29 + 0c09ac6 commit 031e9f1

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed
 

‎README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@ Python logging library for realtime daily logging for python version 2.7
1616
log = Log('path to log dir', 'postfix log file name')
1717

1818
# Usage
19-
log.addToLog('Hello world')
19+
20+
# without log level param
21+
Log.addToLog('Hello world')
22+
2017-11-14 12:42:20,413 - INFO - Hello world
23+
24+
# warning log level
25+
Log.addToLog('Hello world', 'warning')
26+
2017-11-14 12:42:20,413 - WARNING - Hello world
27+
28+
# debug log level
29+
Log.addToLog('Hello world', 'debug')
30+
2017-11-14 12:42:20,413 - DEBUG - Hello world
2031

2132

0 commit comments

Comments
 (0)
Please sign in to comment.