# Environment variables
-* WLOG_APPENDER - the appender to use
+* WLOG_APPENDER - the appender to use possible values below also see the Appender section.
+ * CONSOLE
+ * FILE
+ * BINARY
+ * SYSLOG
+ * JOURNALD
+ * UDP
* WLOG_PREFIX - configure the prefix used for outputting the message (see
Format for more details and examples)
* WLOG_LEVEL - the level to output messages for
* WLOG_DEBUG - debug messages
* WLOG_INFO - general informations
* WLOG_WARN - warnings
-* WLOG_ERROR - error
+* WLOG_ERROR - errors
* WLOG_FATAL - fatal problems
* WLOG_OFF - completely disable the wlog output
* "hr" - hour
* "mi" - minute
* "se" - second
-* "ml" - milliseconds
+* "ml" - millisecond
A maximum of 16 options can be used per format string.
### Udp
-This appender sends the loging messages to a pre-defined remote host via UDP.
+This appender sends the logging messages to a pre-defined remote host via UDP.
Options:
if (!appender->Open)
return TRUE;
- if (!appender->State)
+ if (!appender->active)
{
status = appender->Open(log, appender);
- appender->State = 1;
+ appender->active = TRUE;
}
return status;
if (!appender->Close)
return TRUE;
- if (appender->State)
+ if (appender->active)
{
status = appender->Close(log, appender);
- appender->State = 0;
+ appender->active = FALSE;
}
return status;
if (!appender)
return FALSE;
- if (!appender->State)
+ if (!appender->active)
if (!WLog_OpenAppender(log))
return FALSE;
if (!appender)
return FALSE;
- if (!appender->State)
+ if (!appender->active)
if (!WLog_OpenAppender(log))
return FALSE;
if (!appender)
return FALSE;
- if (!appender->State)
+ if (!appender->active)
if (!WLog_OpenAppender(log))
return FALSE;
if (!appender)
return FALSE;
- if (!appender->State)
+ if (!appender->active)
if (!WLog_OpenAppender(log))
return FALSE;