Skip to content

Commit 84705b5

Browse files
committed
Logging
1 parent 34f7449 commit 84705b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1688,7 +1688,7 @@ from loguru import logger
16881688

16891689
```python
16901690
logger.add('debug_{time}.log', colorize=True) # Connects a log file.
1691-
logger.add('error_{time}.log', level='ERROR') # Adds another file for errors or higher.
1691+
logger.add('error_{time}.log', level='ERROR') # Another file for errors or higher.
16921692
logger.<level>('A logging message')
16931693
```
16941694
* **Levels: `'debug'`, `'info'`, `'success'`, `'warning'`, `'error'`, `'critical'`.**
@@ -1701,7 +1701,7 @@ rotation=<int>|<datetime.timedelta>|<datetime.time>|<str>
17011701
* **`'<int>'` - Max file size in bytes.**
17021702
* **`'<timedelta>'` - Max age of a file.**
17031703
* **`'<time>'` - Time of day.**
1704-
* **`'<str>'` - Any of above as a string: `'100 MB'`, `'1 month 2 weeks'`, `'18:00'`, `'w0'`, `'monday at 12:00'`, ...**
1704+
* **`'<str>'` - Any of above as a string: `'100 MB'`, `'1 month'`, `'monday at 12:00'`, `'w0'`, , ...**
17051705

17061706
### Retention
17071707
**Sets a condition which old log files are deleted.**

0 commit comments

Comments
 (0)