05-03-2004
Running syslog in debug mode produces the following to stdout:
# logger -p local6.emerg this is a test
got a message (1, 0x10)
logmsg: pri 260, flags 0, from nemo, msg May 3 12:12:25 cpdlc: this is another test
Logging to FILE /foo/sshell.log
Logging to UNUSED
Logging to UNUSED
Logging to UNUSED
Logging to UNUSED
Logging to UNUSED
Logging to UNUSED
Logging to UNUSED
Logging to UNUSED
Logging to UNUSED
Logging to UNUSED
Logging to UNUSED
Logging to UNUSED
Logging to UNUSED
Logging to UNUSED
Logging to UNUSED
Logging to UNUSED
Logging to UNUSED
Logging to UNUSED
readfds = 0x30
Why does the priority show up as "260" in the debugging msg? What does all the "Logging to UNUSED" mean?
Thanks!!
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hay everyone, i would like to take this opportunity to thank all of you who helped me make the decision to get a linux distro. As a newbie, Im defininately considering buying Mandrake Linux... I went to the site and phew..... 2300 applications, i think ill have a good time. But i do have a... (5 Replies)
Discussion started by: LolapaloL
5 Replies
2. Shell Programming and Scripting
I have a program that takes two responses, for example:
./eatfruit
<stdout>
Enter fruit:
Do you want to eat fruit?:
<end stdout>
If I do this
yes banana ./eatfruit
<stdout>
Enter fruit:
banana (2 Replies)
Discussion started by: nj78
2 Replies
3. Shell Programming and Scripting
I have 3 files in a directory. The files are named as below
MSDOS
PCDOS
filename.txt
The file filename.txt contains the following 1 line
*****DOS
When I run the following while loop I get the following output
while read r
do
echo $r
done < filename.txt
Output is
MSDOS PCDOS (1 Reply)
Discussion started by: gmatsoon
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I have a question on /etc/syslog.conf file in Solaris 10.
Below is a line taken from /etc/syslog.conf file and I know that the last field (operator) is where the logs gets outputted but how do I find out what the output file name format is going to be and which directory it gets outputted... (1 Reply)
Discussion started by: stevefox
1 Replies
5. Red Hat
Cheers!
In /etc/syslog.conf, if an error type is not specified, is it logged anywhere (most preferable is it logged to /var/log/messages) or not?
To be more precise I am interested in error and critical level messages. At default these errors are not specified in syslog.conf, and I need to... (6 Replies)
Discussion started by: dr1zzt3r
6 Replies
6. What is on Your Mind?
Hello, all
I found you folks by doing searches on
linux bash scripting
From time-to-time I'm hoping to get help from the experts here.
I'm technically competent enough with Windows to run my own Tech-Support business, but I am fairly lightwieght in Linux. Over the last 3-4 years I've... (3 Replies)
Discussion started by: Tovian
3 Replies
7. Solaris
Hi Community
Which are the available entries to forward syslog in syslog.conf
i have put
*.err;kern.debug;daemon.notice;mail.crit;user.alert;user.emerg;kern.notice;auth.notice;kern.warning @172.16.200.50
and it's not going through.giving error message like below:
syslogd:... (2 Replies)
Discussion started by: bentech4u
2 Replies
8. AIX
Hi everyone,
I am trying to configure AIX 6.1 using syslogd to send syslog event to syslog server configured on RHEL. However, RHEL never receives the events.
I have tried to redirect the syslog event on AIX to a local file and successful. Only forwarding to remote server fails.
Firewall... (10 Replies)
Discussion started by: michael_hoang
10 Replies
LEARN ABOUT MOJAVE
setlogmask
SETLOGMASK(3) Linux Programmer's Manual SETLOGMASK(3)
NAME
setlogmask - set log priority mask
SYNOPSIS
#include <syslog.h>
int setlogmask(int mask);
DESCRIPTION
A process has a log priority mask that determines which calls to syslog(3) may be logged. All other calls will be ignored. Logging is
enabled for the priorities that have the corresponding bit set in mask. The initial mask is such that logging is enabled for all priori-
ties.
The setlogmask() function sets this logmask for the calling process, and returns the previous mask. If the mask argument is 0, the current
logmask is not modified.
The eight priorities are LOG_EMERG, LOG_ALERT, LOG_CRIT, LOG_ERR, LOG_WARNING, LOG_NOTICE, LOG_INFO, and LOG_DEBUG. The bit corresponding
to a priority p is LOG_MASK(p). Some systems also provide a macro LOG_UPTO(p) for the mask of all priorities in the above list up to and
including p.
RETURN VALUE
This function returns the previous log priority mask.
ERRORS
None.
ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7).
+-------------+---------------+------------------------+
|Interface | Attribute | Value |
+-------------+---------------+------------------------+
|setlogmask() | Thread safety | MT-Unsafe race:LogMask |
+-------------+---------------+------------------------+
CONFORMING TO
POSIX.1-2001, POSIX.1-2008.
SEE ALSO
closelog(3), openlog(3), syslog(3)
COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the
latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.
2017-09-15 SETLOGMASK(3)