License – CC-BY-SA

Beware however that this refers only to parts which are obviously written by me and do not have any other information about licensing. Quoted text, pictures and other content created by others is copyrighted by the corresponding authors. If you are in doubt, ask before republishing any content.

As you see the date, time and username are also included. In case you do this as root, the username will become logger.

Among the possible options of logger there are these two: -f will take a file as input instead of a message. The file content is parsed to the syslog entirely, so be easy on big files. The other one is -s: with that option the message will not only be posted to syslog but also to standard error.