python logging client for SmartDash
Project description
Use SmartLogger in your code
from smartlogger import SmartLogger
logger = SmartLogger("examplePipelineName", save_to_dir="OPTIONAL_SAVE_DIR, defaults to ./")
stage = logger.Stage(unique_id, stage_name, tags=optional_list_of_tags)
# code block you want to log and time, eg: model inference/ db call/ pre/post processing code
# stage.debug()/ info()/ exception (logs exc info)/ error
# depending on whether it succeeded or not
stage.success()
stage.failed()
# Process to continuously upload logs to dash
smartlogger --save_dir ./ --server_url "http://localhost:8080"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for smartlogger-0.0.1.dev18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8449dad1e2fa43c480eddf34314b20ce22991d320a7ce7db1bf70aecc7f3859f |
|
MD5 | 204e66192bdb089b2d12215d7a1919ab |
|
BLAKE2b-256 | f0da9804ece38f3dcb26169062f1838fc527f66113f5b38031472aca89ebc281 |