How to write to the log?

horemachet

n00b
Joined
Nov 19, 2012
Messages
13
Hi Folks,

I would like to write to the system log on a Nexenta NAS from a script. I did

'logger "text"'.

The system doesn't prompt an error but I don't see an entry in /var/log/messages.

Is it written to somewhere else? Is there another command to use for this purpose?

Regards,

Karsten
 
If pareto's suggestion doesn't fix it (though it should TBH), try

logger -p daemon.notice "text"
 
Back
Top