GNU/Linux Command – LOGGER

logger — Makes entries in the system log file.
 
Summary:
Logger is a shell command interface to the syslog system log module. It can be used to makes entries in the system log from the shell scripts. By default, messages will be logged in /var/log/messages.
 
Example:
$ logger MyLog1 -- Log the message in syslog.  $ logger -i MyLog2 -- Log the message with PID.  $ logger -s MyLog3 -- Log the message in stderr and syslog.  $ logger -t MYTAG MyLog4 -- Log the message with specified Tag.  $ logger -p user.panic MyLog5 -- Log the message with priority.  Read the man page for more priority Facility and Level details.
Read: man logger

Advertisements
Tagged with: ,
Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: