# First off load Log4Bash into your script using
source ./log4bash.sh # Replace this with the path to log4bash.sh
# This one assumes Log4Bash is located in the same directory
# As where you are running the script from
# Log using these functions
DEBUG "Example Debug Message"
INFO "Wow this must be something that's still of some importance but is not a debug message"
NOTICE "This is almost like info but should only be used with significant conditions"
WARNING "Hey! You might wanna check this out. You run fine if you ignore it"
ERROR "Something messed up. We can still run without exiting you should seriously look into this though"
CRITICAL "Something is seriously messed up. We can still run but beware"
ALERT "Action must be taken immediately, exiting the script to prevent damage"
EMERGENCY "The system is unusable. Exiting the script"
-
Notifications
You must be signed in to change notification settings - Fork 1
A minimal but full feature logging "library" for bash
License
GoByeBye/Log4Bash
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A minimal but full feature logging "library" for bash
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published