Server protocol logging. More...
Go to the source code of this file.
Macros | |
#define | MAIN_ERR_PREFIX "LOG: " |
Message prefix for LOG module. | |
#define | LOG_PERM (posix_mode_t) (POSIX_S_IRUSR | POSIX_S_IWUSR) |
Permissions for server protocol logfile. | |
Functions | |
const char * | log_get_logpathname (void) |
Get logfile pathname. More... | |
void | log_delete_logfile (void) |
Delete logfile if present. | |
int | log_open_logfile (FILE **lfs, const char *logfile) |
Open logfile. More... | |
void | log_close_logfile (FILE **lfs) |
Close logfile. More... | |
void | log_add (FILE *lfs, const char *data) |
Add data to end of logfile. More... | |
void | log_free (void *p) |
Free an object allocated by logging module. More... | |
Server protocol logging.
Copyright (c) 2012-2020 by the developers. See the LICENSE file for details. If nothing else is specified, functions return zero to indicate success and a negative value to indicate an error.
Definition in file log.c.