libscipaper 1.0.x
Macros | Functions
sci-log.h File Reference
#include <syslog.h>
#include "types.h"

Go to the source code of this file.

Macros

#define SCI_LOG_SYSLOG   1
 Log to syslog.
 
#define SCI_LOG_STDERR   0
 Log to stderr.
 
#define sci_module_log(loglevel, fmt, ...)   sci_log(loglevel, "%s: " fmt, MODULE_NAME, ##__VA_ARGS__)
 Print a string to the log.
 

Functions

void sci_log (const loglevel_t loglevel, const char *const fmt,...) __attribute__((format(printf
 
void void sci_log_open (const char *const name, const int facility, const int type)
 
void sci_log_close (void)
 

Detailed Description

Author
Carl Klemm carl@.nosp@m.uvos.nosp@m..xyz

sci is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation.

sci is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with sci. If not, see http://www.gnu.org/licenses/.