Difference between revisions of "Logger (command)"
Jump to navigation
Jump to search
Line 14: | Line 14: | ||
* <code>log show</code> in MacOS | * <code>log show</code> in MacOS | ||
* <code>[[linux Administration/System Services/System Logging/Journalctl|journalctl]]</code> | * <code>[[linux Administration/System Services/System Logging/Journalctl|journalctl]]</code> | ||
− | + | ||
* {{logging}} | * {{logging}} | ||
{{CC license}} | {{CC license}} | ||
Original Source: https://en.wikiversity.org/wiki/Linux_Administration/System_Services/System_Logging/logger | Original Source: https://en.wikiversity.org/wiki/Linux_Administration/System_Services/System_Logging/logger |
Revision as of 12:55, 24 December 2019
Linux[1] (util-linux
package) and most BSDs including MacOS provide logger command line utility to send messages to syslog, locally or to a remote syslog server. Many languages provide support for writing messages to syslog, such as go: https://godoc.org/github.com/spkg/slog.
Basic Usage
logger -s "Message"
- -s, --stderr Output the message to standard error as well as to the system log.
Activities
See also
log show
in MacOSjournalctl
Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy.
Original Source: https://en.wikiversity.org/wiki/Linux_Administration/System_Services/System_Logging/logger
Advertising: