taskrambler  0.1.9
Web server and task management solution.
stderr.c File Reference
#include <stdio.h>
#include "logger/logger.h"
#include "logger/interface/logger.h"
+ Include dependency graph for stderr.c:

Go to the source code of this file.

Functions

static void logStderr (void *this, logger_level level, const char *const msg)
 
 INIT_IFACE (Logger, logStderr)
 
 CREATE_CLASS (LoggerStderr, Logger, IFACE(Logger))
 

Detailed Description

Author
Georg Hopp

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program 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 General Public License for more details.

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

Definition in file stderr.c.

Function Documentation

CREATE_CLASS ( LoggerStderr  ,
Logger  ,
IFACE(Logger)   
)
INIT_IFACE ( Logger  ,
logStderr   
)
static void logStderr ( void *  this,
logger_level  level,
const char *const  msg 
)
static

Definition at line 30 of file stderr.c.

References logger_level_str.

31 {
32  fprintf(stderr, "[%s] %s\n", logger_level_str[level], msg);
33 }
const char *const logger_level_str[]
Definition: logger.c:31