Skip to content

jeliasson/zsh-logging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zsh-logging

This is a simple logging script compatible with /bin/zsh. See 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

zsh-logging

Todo

  • 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 to print a table of your terminal colors

About

A simple logging script compatible with zsh

Topics

Resources

Stars

Watchers

Forks

Languages