https://github.com/notai-tech/smartdash
https://github.com/notai-tech/smartdash
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/notai-tech/smartdash
- Owner: notAI-tech
- License: mit
- Created: 2023-05-17T18:55:01.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-18T12:25:57.000Z (over 2 years ago)
- Last Synced: 2025-02-10T08:49:10.444Z (over 1 year ago)
- Language: Python
- Size: 63.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SmartDash
### Use SmartLogger in your code
```python
from smartlogger import SmartLogger
logger = SmartLogger("examplePipelineName", dir="OPTIONAL_SAVE_DIR, defaults to ./", log_to_console=False (defaults to False))
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()
stage.key_value(string_key, any_value, name=None default None, tags=[] default [])
```
```bash
# Process to continuously upload logs to dash
smartlogger --save_dir ./ --server_url "http://localhost:8080"
```
### Start SmartDash
```
# Start smartdash server
smartdash --server --port 6789 --save_dir ./
# Start smartdash dashboard
smartdash --dash --server_url "http://localhost:6789" --port 6788 --save_dir ./
# access the dashboard at localhost:6788
```