Differences
This shows you the differences between two versions of the page.
— |
linux_wiki:logger [2019/05/25 23:50] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Logger ====== | ||
+ | |||
+ | **General Information** | ||
+ | |||
+ | Logger is a shell command interface to syslog. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ====== Log Everwhere ====== | ||
+ | |||
+ | To log to three visible places in one command: | ||
+ | <code bash> | ||
+ | logger --stderr --priority local0.notice -t "My Prefix Here" "My Message Here" 2>&1 | tee / | ||
+ | </ | ||
+ | * --stderr | ||
+ | * local0.notice | ||
+ | * tee / | ||
+ | |||
+ | ---- | ||