Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 564632

Summary: sys-apps/util-linux-2.26.2: logger does not support any facility
Product: Gentoo Linux Reporter: globus <yoric-k>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal CC: hydrapolic
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info util-linux
emerge --info metalog

Description globus 2015-11-01 15:44:55 UTC
Created attachment 415874 [details]
emerge --info util-linux

Hello,
sorry my bad English.

/usr/bin/logger does not support any facility, only unknown "default".

root# logger -p [daemon|kern|user|etc] "msg"
logger: unknown priority name: [daemon|kern|user|etc]
root# logger "msg" -> successfully in /var/log/every*/current

myuser# same as above

That is, a simple user can write in syslog.

#ls -l `which logger`
-rwxr-xr-x 1 root root 30612 nov 1 19:08 /usr/sbin/logger
Comment 1 globus 2015-11-01 15:46:30 UTC
Created attachment 415876 [details]
emerge --info metalog
Comment 2 Tomáš Mózes 2015-11-01 20:04:24 UTC
According to the man page:

-p, --priority priority
  Enter the message into the log with the specified priority.  The priority  may be  specified  numerically  or  as  a  facility.level  pair.   For example, -p local3.info logs the message as informational in  the  local3  facility.   The default is user.notice.