testlog.sh #!/bin/sh # # testlog.sh -- a script to test the syslog facility to ensure that # messages, at various levels, are being forwarded # to the correct file(s) # # Set behaviour FACILITY=local7 LOGGER="/usr/bin/logger" # $LOGGER -p $FACILITY.emerg "This meassage was sent to $FACILITY.emerg (0)" $LOGGER -p $FACILITY.alert "This meassage was sent to $FACILITY.alert (1)" $LOGGER -p $FACILITY.crit "This meassage was sent to $FACILITY.crit (2)" $LOGGER -p $FACILITY.err "This meassage was sent to $FACILITY.err (3)" $LOGGER -p $FACILITY.warning "This meassage was sent to $FACILITY.warning (4)" $LOGGER -p $FACILITY.notice "This meassage was sent to $FACILITY.notice (5)" $LOGGER -p $FACILITY.info "This meassage was sent to $FACILITY.info (6)" $LOGGER -p $FACILITY.debug "This meassage was sent to $FACILITY.debug (7)"