logger 명령어 옵션

 

예시

logger -p kern.crit '[TEST] rsyslog_configuration_test_logger'

 

명령 입력시 아래와 같이 출력된다.

왜 user로 기입되었는지 확인해보니... kernel 분류는 userspace process로 생성할 수 없다고 하네요.

출처 : man logger

facility 옵션 리스트

              auth
              authpriv   for security information of a sensitive nature
              cron
              daemon
              ftp
              kern       cannot be generated from userspace process, automatically converted to user
              lpr
              mail
              news
              syslog
              user
              uucp
              local0
                to
              local7
              security   deprecated synonym for auth

 

level 옵션 리스트

              emerg
              alert
              crit
              err
              warning
              notice
              info
              debug
              panic     deprecated synonym for emerg
              error     deprecated synonym for err
              warn      deprecated synonym for warning

 

 

[예시]

logger -p user.error "TESTING"

입력시 USER ERR 로 출력됩니다.

 

 

 

 

+ Recent posts