GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing lirc.org — LIRC libraries: /home/columbus/software/lirc-doc/lib/lirc_log.h File Reference
AllClassesFilesFunctionsVariablesTypedefsEnumerationsMacrosModulesPages
lirc_log.h File Reference (6bfe0ff 2016-04-26 15:59:19 +0200)Logging functionality. More... #include <syslog.h>#include <sys/time.h>#include <stdio.h>#include <unistd.h>Go to the source code of this file.
Detailed DescriptionLogging functionality. Definition in file lirc_log.h. Macro Definition DocumentationWrapper for read(2) which logs errors. Definition at line 220 of file lirc_log.h. Wrapper for write(2) which logs errors. Definition at line 215 of file lirc_log.h.
Default loglevel (last resort). Definition at line 79 of file lirc_log.h.
Check if a given, standard loglevel should be printed. Definition at line 157 of file lirc_log.h.
Max loglevel (for validation). Definition at line 61 of file lirc_log.h.
Mix loglevel (for validation). Definition at line 64 of file lirc_log.h.
Value:
{ logprintf(LIRC_DEBUG, fmt, ##__VA_ARGS__); } }
void logprintf(loglevel_t prio, const char *format_str,...) Write a message to the log. Definition: lirc_log.c:273 Log a debug message.
Definition at line 124 of file lirc_log.h.
Value:
{ logprintf(LIRC_ERROR, fmt, ##__VA_ARGS__); } }
void logprintf(loglevel_t prio, const char *format_str,...) Write a message to the log. Definition: lirc_log.c:273 Log an error message. Definition at line 104 of file lirc_log.h.
Value:
{ logprintf(LIRC_INFO, fmt, ##__VA_ARGS__); } }
void logprintf(loglevel_t prio, const char *format_str,...) Write a message to the log. Definition: lirc_log.c:273 Log an info message. Definition at line 114 of file lirc_log.h.
Value:
{ logprintf(LIRC_NOTICE, fmt, ##__VA_ARGS__); } }
void logprintf(loglevel_t prio, const char *format_str,...) Write a message to the log. Definition: lirc_log.c:273 Log a notice message. Definition at line 119 of file lirc_log.h.
Value:
{ logperror(LIRC_WARNING, fmt, ##__VA_ARGS__); } }
void logperror(loglevel_t prio, const char *format,...) Log current kernel error with a given level. Definition: lirc_log.c:310 perror wrapper logging with level LIRC_DEBUG. Definition at line 99 of file lirc_log.h.
Value:
{ logperror(LIRC_ERROR, fmt, ##__VA_ARGS__); } }
void logperror(loglevel_t prio, const char *format,...) Log current kernel error with a given level. Definition: lirc_log.c:310 perror wrapper logging with level LIRC_ERROR.
Definition at line 89 of file lirc_log.h.
Value:
{ logperror(LIRC_WARNING, fmt, ##__VA_ARGS__); } }
void logperror(loglevel_t prio, const char *format,...) Log current kernel error with a given level. Definition: lirc_log.c:310 perror wrapper logging with level LIRC_WARNING. Definition at line 94 of file lirc_log.h.
Value:
{ logprintf(LIRC_TRACE, fmt, ##__VA_ARGS__); } }
void logprintf(loglevel_t prio, const char *format_str,...) Write a message to the log. Definition: lirc_log.c:273 Log a trace message. Definition at line 129 of file lirc_log.h.
Value:
{ logprintf(LIRC_TRACE1, fmt, ##__VA_ARGS__); } }
void logprintf(loglevel_t prio, const char *format_str,...) Write a message to the log. Definition: lirc_log.c:273 Log a trace1 message. Definition at line 134 of file lirc_log.h.
Value:
{ logprintf(LIRC_TRACE2, fmt, ##__VA_ARGS__); } }
void logprintf(loglevel_t prio, const char *format_str,...) Write a message to the log. Definition: lirc_log.c:273 Log a trace2 message. Definition at line 139 of file lirc_log.h.
Value:
{ logprintf(LIRC_WARNING, fmt, ##__VA_ARGS__); } }
void logprintf(loglevel_t prio, const char *format_str,...) Write a message to the log. Definition: lirc_log.c:273 Log a warning message. Definition at line 109 of file lirc_log.h.
Max level logged in actual logfile. Definition at line 85 of file lirc_log.h.
Return x in (double) quotes. Definition at line 212 of file lirc_log.h.
Helper macro for STR(). Definition at line 209 of file lirc_log.h. Enumeration Type Documentation
The defined loglevels. LIRC_TRACE..LIRC_TRACE2 is mapped to LIRC_DEBUG in outputted messages, but generates more messages than DEBUG. Definition at line 36 of file lirc_log.h. Function Documentation
Print prefix + a hex dump of len bytes starting at *buf. Definition at line 369 of file lirc_log.c.
Close the log previosly opened with lirc_log_open(). Definition at line 137 of file lirc_log.c.
Get the default level, from environment or hardcoded. Definition at line 219 of file lirc_log.c.
Retrieve a client path for logging according to freedesktop specs.
Definition at line 332 of file lirc_log.c.
Open the log for upcoming logging.
Definition at line 95 of file lirc_log.c.
Set logfile. Either a regular path or the string 'syslog'; the latter does indeed use syslog(1) instead. Must be called before lirc_log_open(). Definition at line 84 of file lirc_log.c.
Check if log is set up to use syslog or not. Definition at line 78 of file lirc_log.c.
Log current kernel error with a given level. Log current kernel error with a given level.
Definition at line 310 of file lirc_log.c.
Write a message to the log. Caller should use the log_ macros and not call this directly.
Caller should use the log_ macros and not call this directly.
Definition at line 273 of file lirc_log.c.
Adds printf-style arguments to perror(3). Definition at line 254 of file lirc_log.c.
Convert a string, either a number or 'info', 'trace1', error etc. to a loglevel. Definition at line 234 of file lirc_log.c. Variable Documentation
The actual logchannel. Should not be changed directly by external code. Definition at line 49 of file lirc_log.c.
The actual loglevel. Should not be changed directly by external code. Definition at line 47 of file lirc_log.c.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||