logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

logger.1 (866B)


  1. .Dd 2015-10-08
  2. .Dt LOGGER 1
  3. .Os sbase
  4. .Sh NAME
  5. .Nm logger
  6. .Nd make entries in the system log
  7. .Sh SYNOPSIS
  8. .Nm
  9. .Op Fl is
  10. .Op Fl p Ar priority
  11. .Op Fl t Ar tag
  12. .Op Ar message ...
  13. .Sh DESCRIPTION
  14. .Nm
  15. provides a shell command interface to the
  16. .Xr syslog 3
  17. system log module and writes each
  18. .Ar message
  19. to the log.
  20. If no
  21. .Ar message
  22. is given,
  23. .Nm
  24. logs stdin.
  25. .Sh OPTIONS
  26. .Bl -tag -width xxxxxxxxxxxx
  27. .It Fl i
  28. Add the logger process ID to each line in the log.
  29. .It Fl p Ar priority
  30. Set the message
  31. .Ar priority
  32. given symbolically as a
  33. .Dq facility.level
  34. pair.
  35. The default is
  36. .Dq user.notice .
  37. .It Fl s
  38. Also log to stderr.
  39. .It Fl t Ar tag
  40. Add
  41. .Ar tag
  42. to each line in the log.
  43. .El
  44. .Sh SEE ALSO
  45. .Xr syslogd 1 ,
  46. .Xr syslog 3
  47. .Sh STANDARDS
  48. The
  49. .Nm
  50. utility is compliant with the
  51. .St -p1003.1-2013
  52. specification.
  53. .Pp
  54. The
  55. .Op Fl ipst
  56. flags are an extensions to that specification.