mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 19:30:07 +01:00
logging/trivial: move code
This commit is contained in:
parent
98e34208bd
commit
2f6978efb7
1 changed files with 12 additions and 12 deletions
|
|
@ -48,18 +48,6 @@ nm_log_handler (const gchar *log_domain,
|
|||
const gchar *message,
|
||||
gpointer ignored);
|
||||
|
||||
static NMLogLevel log_level = LOGL_INFO;
|
||||
static char *log_domains;
|
||||
static NMLogDomain logging[_LOGL_N_REAL];
|
||||
static gboolean logging_set_up;
|
||||
enum {
|
||||
LOG_BACKEND_GLIB,
|
||||
LOG_BACKEND_SYSLOG,
|
||||
LOG_BACKEND_JOURNAL,
|
||||
LOG_BACKEND_JOURNAL_SYSLOG_STYLE,
|
||||
} log_backend = LOG_BACKEND_GLIB;
|
||||
static char *logging_domains_to_string;
|
||||
|
||||
typedef struct {
|
||||
NMLogDomain num;
|
||||
const char *name;
|
||||
|
|
@ -73,6 +61,18 @@ typedef struct {
|
|||
gboolean full_details;
|
||||
} LogLevelDesc;
|
||||
|
||||
static NMLogLevel log_level = LOGL_INFO;
|
||||
static char *log_domains;
|
||||
static NMLogDomain logging[_LOGL_N_REAL];
|
||||
static gboolean logging_set_up;
|
||||
enum {
|
||||
LOG_BACKEND_GLIB,
|
||||
LOG_BACKEND_SYSLOG,
|
||||
LOG_BACKEND_JOURNAL,
|
||||
LOG_BACKEND_JOURNAL_SYSLOG_STYLE,
|
||||
} log_backend = LOG_BACKEND_GLIB;
|
||||
static char *logging_domains_to_string;
|
||||
|
||||
static const LogLevelDesc level_desc[_LOGL_N] = {
|
||||
[LOGL_TRACE] = { "TRACE", "<trace>", LOG_DEBUG, G_LOG_LEVEL_DEBUG, TRUE },
|
||||
[LOGL_DEBUG] = { "DEBUG", "<debug>", LOG_INFO, G_LOG_LEVEL_DEBUG, TRUE },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue