Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 1.52 KB

README.md

File metadata and controls

35 lines (21 loc) · 1.52 KB

Log4Bash

stars GitHub followers Codacy Badge Log4Bash

Usage

# 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"

Example output example