dkslsupp(3) - Linux man page
Name
dkslsupp - Syslog support
Synopsis
#include <dkslsupp.h> int dkslsupp_get_code(char *str);
Description
The dkslsupp_get_code() function converts the syslog description string str into an appropriate numeric value.
The description string consists of feature an priority, separated by a dot (i.e. "auth.notice").
The following features can be used:
- • auth
- messages related to use authentication
- • authpriv
• cron
- messages generated by unattended scheduled jobs
- • daemon
- generated by daemons and services
- • ftp
- generated by the FTP service
- • kern
- generated by the OS kernel
- • lpr
- generated by t he print system
- • mail
- generated by the mail transport system
- • news
- generated by the NNTP service
- • syslog
- generated by the syslog service
- • user
- generated by programs run from normal users
- • uucp
- generated by the UUCP service
- • local0 .... local7
- site specific messages
- The following priority keywords can be used:
- • emerg
- The system is unusable.
- • alert
- An action must be taken immediately.
- • crit
- A critical error occured.
- • err
- An error occured.
- • warning
- A warning condition occured.
- • notice
- Notification about a normal but significant condition.
- • info
- An informational message.
- • debug
- A message usefull for debugging.
- messages related to use authentication
Return Value
A nonzero value is returned on success, 0 on error.
Author
Dirk Krause
Copyright And License
Copyright © 2001-2008, Dirk Krause All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the Dirk Krause nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT LIMITED TO , THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED TO , PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES ; LOSS OF USE , DATA , OR PROFITS ; OR BUSINESS INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING NEGLIGENCE OR OTHERWISE ) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE , EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE .