Short testcase..
perl -e 'use Sys::Syslog qw(:DEFAULT setlogsock);setlogsock('unix');openlog("info","cons,pid,ndelay","user");syslog("info","Test bad");closelog();'
logger "Test OK";tail -n3 /var/log/syslog|cat -A
And show this for me:
info[27999]: Test bad $
logger: Test OK$
Notice the space after bad that is unwanted.
--
Johan Thelmén