https://github.com/jeliasson/zsh-logging
A simple logging script compatible with zsh
https://github.com/jeliasson/zsh-logging
logging zsh
Last synced: 10 months ago
JSON representation
A simple logging script compatible with zsh
- Host: GitHub
- URL: https://github.com/jeliasson/zsh-logging
- Owner: jeliasson
- Created: 2020-12-15T22:17:50.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-06-09T17:42:28.000Z (about 2 years ago)
- Last Synced: 2024-06-10T11:05:28.321Z (about 2 years ago)
- Topics: logging, zsh
- Language: Shell
- Homepage:
- Size: 193 KB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# zsh-logging
This is a simple logging script compatible with `/bin/zsh`. See [`example.sh`](example.sh) for the example illustrated below and it's documentation.
### Features
- Colorful messages with timestamps and propper indents
- Pipe output to log file (`logs/logger.log`)
- Handy logging functions (`DEBUG`, `INFO`, `SUCCESS`, `WARN`, `ERROR`)
- Debugging of function calls (`ENTRY` and `EXIT`)
### Output

### Todo
- [x] Strip off terminal colors from output log file
- [ ] Pass in custom date format as argument
- [ ] Create color variables in every function
### Extra
See [`docs/colors.sh`](docs/colors.sh) to print a table of your terminal colors