You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-4Lines changed: 28 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ Logprise is a Python package that seamlessly integrates [loguru](https://github.
7
7
- Unified logging interface that captures both standard logging and loguru logs
8
8
- Automatic notification delivery based on configurable log levels
9
9
- Batched notifications to prevent notification spam
10
-
- Flexible configuration through apprise's extensive notification service support
10
+
- Flexible configuration through apprises extensive notification service support
11
11
- Periodic flushing of log messages at configurable intervals
12
12
- Automatic capture of uncaught exceptions
13
13
- Easy integration with existing Python applications
@@ -44,10 +44,17 @@ logger.error("This will trigger a notification") # Default is ERROR level
44
44
45
45
### Notification Services
46
46
47
-
Logprise uses Apprise for notifications, which supports a wide range of notification services. Create an `.apprise` file in one of the default configuration paths:
47
+
Logprise uses Apprise for notifications, which supports a wide range of notification services. You can configure these in two ways:
48
48
49
-
-`~/.apprise`
50
-
-`~/.config/apprise`
49
+
#### 1. Configuration File
50
+
51
+
Create an `.apprise` file in one of the default configuration paths:
*For more possible configuration file locations, please check: `DEFAULT_CONFIG_PATHS` in [apprises source code](https://github.com/caronc/apprise/blob/master/apprise/cli.py).*
51
58
52
59
Example configuration:
53
60
@@ -57,6 +64,23 @@ tgram://bot_token/chat_id
57
64
slack://tokenA/tokenB/tokenC/#channel
58
65
```
59
66
67
+
#### 2. Programmatically Add Services
68
+
69
+
You can easily add more notification services programmatically:
See [Apprise's configuration guide](https://github.com/caronc/apprise/wiki/config#cli) for the full list of supported services and their configuration.
0 commit comments