The basic syntax for logger is logger message
. It does not require any options if you are just going to write a message to the logfile and you want to write to the default /var/log/messages at the notice level.
root# logger Added a new disk to a machine
You can see a message in /var/log/message file. Also you can run this command with option -s Log the message to standard error, as well as the system log.
root# logger -s Added a new disk to a machine