4 * @brief Interface of sys_logger_t.
9 * Copyright (C) 2006 Martin Willi
10 * Hochschule fuer Technik Rapperswil
12 * This program is free software; you can redistribute it and/or modify it
13 * under the terms of the GNU General Public License as published by the
14 * Free Software Foundation; either version 2 of the License, or (at your
15 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
19 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
26 typedef struct sys_logger_t sys_logger_t
;
33 * @brief Logger for syslog which implements bus_listener_t.
36 * - sys_logger_create()
43 * Implements the bus_listener_t interface.
45 bus_listener_t listener
;
48 * @brief Set the loglevel for a signal type.
50 * @param this stream_logger_t object
51 * @param singal type of signal
52 * @param level max level to log
54 void (*set_level
) (sys_logger_t
*this, signal_t signal
, level_t level
);
57 * @brief Destroys a sys_logger_t object.
59 * @param this sys_logger_t object
61 void (*destroy
) (sys_logger_t
*this);
65 * @brief Constructor to create a sys_logger_t object.
67 * @param facility syslog facility to use
68 * @return sys_logger_t object
72 sys_logger_t
*sys_logger_create(int facility
);
75 #endif /* SYS_LOGGER_H_ */