In former LTS releases, the logger -s
command just printed the text to stderr:
Ubuntu 14 LTS (package bsdutils, current version 1:2.20.1-5.1ubuntu20.9
) and
Ubuntu 12 LTS (package bsdutils, current version 1:2.20.1-1ubuntu3.1
):
logger -s -t test text
test: text
But in the current LTS release, it prepends some strange text:
Ubuntu 16 LTS (package bsdutils, current version 1:2.27.1-6ubuntu3.3
):
logger -s -t test text
<13>Aug 24 12:19:04 test: text
I understand that there has been a date prepended in the new version.
But what does <13>
mean ?
(The syslog
itself does not contain that <13>
string.)
Edit: Bonus question: How can I get rid of that ?
The value <13> is the priority prefix for priority
user.notice
Example for various priority values:
man logger