Skip to content

lt77777/Log4Bash

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%