logger Flashcards

1
Q

logger

A

logger makes entries in the system log.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

logger

-i, log the logger command’s PID.

–id[=<id>], Log the given <id>, or otherwise PID.</id></id>

  • f, –file <file>, Log the contents of this file.</file>
  • e, –skip-empty, Do not log empty lines when processing files.
  • p, –priority <prio>, Mark given message with this priority.</prio>

–octet-count, Use rfc6587 octet counting.

A

–prio-prefix, Look for a prefix on every line read from stdin.

  • s, –stderr, Output message to standard error as well.
  • S, –size <size>, Maximum size for a single message.</size>
  • t, –tag <tag>, Mark every line with this tag.</tag>
  • n, –server <name>, Write to this remote syslog server.</name>
  • P, –port <port>, Use this port for UDP and TCP connection.</port>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

logger

  • T, –tcp, Use TCP only.
  • d, –udp, Use UDP only.

–rfc5424[=<snip>], Use syslog protocol; <snip> can be notime, notq, or nohost.</snip></snip>

A

-u, –socket <socket>, Write to this Unix socket.</socket>

–socket-errors [=<on>], Print connection errors when using sockets.</on>

–journald[=<file>], Write journald entry.</file>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly