# 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"
lt77777 / log4bash Goto Github PK
View Code? Open in Web Editor NEWThis project forked from gobyebye/log4bash
License: MIT License