Move UC_LOG_DESTINATION enum to logging.c, it's

not a public type
This commit is contained in:
Nils O. Selåsdal
2014-04-25 19:57:59 +02:00
parent d9bb5315f8
commit 802462a5c0
2 changed files with 15 additions and 13 deletions
+3 -13
View File
@@ -83,18 +83,6 @@ enum UC_LOG_LEVEL {
UC_LL_NONE = 9,
};
/** A destination for the logging messages*/
enum UC_LOG_DESTINATION {
/** Logs using the unix syslog system */
UC_LDEST_SYSLOG,
/** Prints log messages to stderr. */
UC_LDEST_STDERR,
/** Prints log messages to a file */
UC_LDEST_FILE,
};
/** A module of a program, that will perform logging.
* This is used group logging from parts of a larger program,
* and allow the log message to identigy which module the
@@ -149,11 +137,13 @@ enum UC_LOG_ROTATE_POLICY {
struct UCLogRotateSettings {
/** Policy */
enum UC_LOG_ROTATE_POLICY policy;
/** For UC_LOG_ROTATE_SIZE policy */
struct {
/** Max size of an individual log file */
size_t max_size;
/** Max number of log files to keep.
/** Max number of extra log files to keep in addition
* to the current log file.
* Is forced to be at least 1*/
unsigned int num_files;
} size_settings;
+12
View File
@@ -12,6 +12,18 @@
#include "ucore/logging.h"
#include "ucore/utils.h"
/** A destination for the logging messages*/
enum UC_LOG_DESTINATION {
/** Logs using the unix syslog system */
UC_LDEST_SYSLOG,
/** Prints log messages to stderr. */
UC_LDEST_STDERR,
/** Prints log messages to a file */
UC_LDEST_FILE,
};
/** Max suffixes we'll try to apply to a log file when rotating before
* giving up
*/