Created
August 15, 2013 01:01
-
-
Save petems/6237351 to your computer and use it in GitHub Desktop.
All the levels of logging for puppet...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node default { | |
notice("try to run this script with -v and -d to see difference between log levels") | |
notice("function documentation is available here: http://docs.puppetlabs.com/references/latest/function.html") | |
notice("--------------------------------------------------------------------------") | |
debug("this is debug. visible only with -d or --debug") | |
info("this is info. visible only with -v or --verbose or -d or --debug") | |
alert("this is alert. always visible") | |
crit("this is crit. always visible") | |
emerg("this is emerg. always visible") | |
err("this is err. always visible") | |
warning("and this is warning. always visible") | |
notice("this is notice. always visible") | |
#fail will break execution | |
fail("this is fail. always visible. fail will break execution process") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment