Skip to content

Commit ce51eee

Browse files
committed
bump version to 1.6.0
1 parent 5e5e3df commit ce51eee

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Even multiprocessing logging becomes a breeze.
1111
* [Install](#install)
1212
* [Overview](#overview)
1313
* [Usage](#usage)
14-
* [Overwrite the default log path](#-1-overwrite-the-default-log-path)
15-
* [Provide your config file](#-2-provide-your-config-file)
14+
* [Overwrite the default log path](#1-overwrite-the-default-log-path)
15+
* [Provide your config file](#2-provide-your-config-file)
1616
* [Capture stdout](#3-capture-stdout)
1717
* [Exception logging](#4-exception-logging)
1818
* [try-except exception logging](#5-try-except-exception-logging)
@@ -152,7 +152,7 @@ Parameter with the same name passed in `setup_logging` function will override th
152152

153153
**Warning**: To process `.yaml` config file, you either need `pyyaml` or `ruamel.yaml` package installed.
154154

155-
###3. Capture stdout:
155+
### 3. Capture stdout:
156156

157157
If you have an old code base with a lot of `print(msg)` or `sys.stdout.write(msg)` and
158158
don't have access or time to refactor them into something like `logger.info(msg)`,
@@ -224,7 +224,7 @@ Parameter with the same name passed in `setup_logging` function will override th
224224
But messages that contain blank line(s) and other characters will be fully logged.
225225
For example, `\nTo day is a beautiful day\n` will be logged as is.
226226

227-
###4. Exception logging:
227+
### 4. Exception logging:
228228

229229
Consider the following error code snippet:
230230

@@ -346,7 +346,7 @@ Parameter with the same name passed in `setup_logging` function will override th
346346
If you are using python 3.8+, the new `threading.excepthook` won't be called as the uncaught exception
347347
has been handled by `logger-tt`.
348348

349-
###5. `try-except` exception logging:
349+
### 5. `try-except` exception logging:
350350

351351
`exception context` logging also applies for `try-except` block.
352352
This means that if you call `logger.exception()` inside `except` block,
@@ -396,7 +396,7 @@ Parameter with the same name passed in `setup_logging` function will override th
396396
will cause the first line of error report to be the message of exception.
397397
In the case of the above example, it would be come `[2020-06-12 21:37:00] ERROR: division by zero`.
398398

399-
###6. Silent unwanted loggers:
399+
### 6. Silent unwanted loggers:
400400

401401
Third party modules also have loggers, and their messages are usually not related to your code.
402402
A bunch of unwanted messages may hide the one that come from your own module.
@@ -436,7 +436,7 @@ Parameter with the same name passed in `setup_logging` function will override th
436436
setup_logging(suppress=['urllib3', 'exchangelib'])
437437
```
438438

439-
###7. Logging in multiprocessing:
439+
### 7. Logging in multiprocessing:
440440

441441
This is archived by using multiprocessing queues or a socket server.
442442

@@ -501,7 +501,7 @@ Parameter with the same name passed in `setup_logging` function will override th
501501
Other options `True`, `spawn`, `forkserver` will use `socketHandler` by default.<br>
502502
This is to prevent you `set_start_method` as `spawn` under linux and thus `queueHandler` won't work.
503503

504-
###8. Temporary disable logging:
504+
### 8. Temporary disable logging:
505505

506506
Some block of code contain critical information, such as password processing, that should not be logged.
507507
You can disable logging for that block with a `logging_disabled` context:
@@ -521,7 +521,7 @@ Parameter with the same name passed in `setup_logging` function will override th
521521

522522
# Sample config:
523523
Below are default config files that used by `logger-tt`. You can copy and modify them as needed.
524-
##1. Yaml format:
524+
## 1. Yaml format:
525525

526526
log_config.yaml:
527527

@@ -580,7 +580,7 @@ Below are default config files that used by `logger-tt`. You can copy and modify
580580
both: ["%(message)s", "%(processName)s %(threadName)s %(message)s"]
581581
```
582582

583-
##2. Json format:
583+
## 2. Json format:
584584

585585
log_config.json:
586586

0 commit comments

Comments
 (0)