Simple logger which can work with network!
Project description
sherlog
Usage
Default logger
By default, logger will record everything in the directory where you calling it
from sherlog import logger
logger.info("THIS IS LOG MESSAGE")
To change logs directory call .set_stream()
method
from sherlog import logger
from sherlog import FileSystemHandler
logger.set_stream( # <path_to_dir>, <Handler>
"~/home/ubuntu/...", FileSystemHandler
)
logger.info("THIS IS LOG MESSAGE")
Telegram logger
Setup
-
.ini file
Create plugins.ini file. Format of file and required data is located in plugins.ini.example
Logger sends your message to telegram in asynchronous manner.
tlogger
will run in separated thread.
from sherlog import tlogger
tlogger.info("This is log message")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sherlogger-0.0.1.tar.gz
(6.6 kB
view details)
Built Distribution
File details
Details for the file sherlogger-0.0.1.tar.gz
.
File metadata
- Download URL: sherlogger-0.0.1.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cff57a434ce10648a34b83be6c952f62587e5131072063f405630fa490c0b142 |
|
MD5 | 758b781fc24d4f367371c7fd0ec8b5d1 |
|
BLAKE2b-256 | 297b647661caac1c15d83ebd85bd6ae375c2d5c6178f39710209f389f2c0323d |
File details
Details for the file sherlogger-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: sherlogger-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8fc6053eb1b721981feeb9901eb514a1451dbcbb073ae8d76fe5393847944e5 |
|
MD5 | cd9a5789e3349e665d0a22046eaf1362 |
|
BLAKE2b-256 | d746899865e015e642ba66ab376a8e0cb8a598d7c897b8db0e8650a6144553d4 |