@@ -149,9 +149,9 @@ Parameter with the same name passed in `setup_logging` function will override th
149149 ``` python
150150 setup_logging(log_path = ' new/path/to/your_log.txt' )
151151 ```
152- If you have multiple handlers and want each of them log to different destination ,
152+ If you have multiple handlers and want each of them log to different destinations ,
153153 you can pass in a dict of ` "handler_name": "log_path" ` .
154- The handler names must match what defined in the config file.
154+ The handler names must match what is defined in the config file.
155155
156156 ``` python
157157 setup_logging(log_path = {' error_file_handler' : ' log/error.txt' ,
@@ -743,14 +743,14 @@ window.close()
743743 see the difference while clicking the `stop` button for yourself.
744744
745745# ## 12. Telegram Handler:
746- This handler enables you to send log message directly to telegram users or groups.
746+ This handler enables you to send log messages directly to telegram users or groups.
747747 For telegram groups, you can specify a certain `topic` to send to, too.
748- This handler uses web api , so there is no third party dependency.
748+ This handler uses web API , so there is no third- party dependency.
749749
750750 To set up this handler, you need the following information :
751751 * Your bot `token`: if you don't have one, create a new bot with https://t.me/botfather.
752752 * Destination `unique_id`: a `chat_id` (user id or group id) and optionally
753- ` message_thread_id` of a topic in that group. You can chat to or add @RawDataBot to your group to get these ids.
753+ ` message_thread_id` of a topic in that group. You can chat with or add @RawDataBot to your group to get these ids.
754754 * Log level to be sent: above a level or only a specific level.
755755
756756
@@ -760,11 +760,11 @@ window.close()
760760 * token: `TELEGRAM_BOT_LOG_TOKEN`
761761 * unique_ids: `TELEGRAM_BOT_LOG_DEST`
762762
763- These above name is specified in `env_token_key` and `env_unique_ids_key` in the default config file.
763+ These above names are specified in `env_token_key` and `env_unique_ids_key` in the default config file.
764764 You may edit them to suit your environment.
765765
766766 For the values, `unique_ids` accepts the format `[name:]chat_id[@message_thread_id]`,
767- multiple values must be separated by semicolon (space after semicolon will be ignored).
767+ multiple values must be separated by a semicolon (space after a semicolon will be ignored).
768768 Which means the following examples are possible :
769769 * a single chat_id: `123456789` (user id) or `-987654321` (group id)
770770 * a specified topic within a group: `-987654321@2`
@@ -790,8 +790,8 @@ window.close()
790790 ` ` `
791791
792792 From here, it should already work.
793- If you need certain messages go to a certain people/group, beside of adding a new handler,
794- you can add a filter that add `dest_name` attribute to the log `record`.
793+ If you need certain messages to go to a certain people/group, besides adding a new handler,
794+ you can add a filter that adds the `dest_name` attribute to the log `record`.
795795
796796` ` ` python
797797def telegram_filter(record):
@@ -1151,4 +1151,4 @@ Now you can do `try-except` a block of code and still have a full context at err
11511151* add test cases for `capture print`
11521152
11531153# # 1.1.0
1154- * Add `capture print` functionality with `guess level` for the message.
1154+ * Add `capture print` functionality with `guess level` for the message.
0 commit comments