logging: add accessor for log level

This commit is contained in:
Dan Williams
2010-08-08 01:36:08 -05:00
parent 759ad39c8c
commit b9a919784e
2 changed files with 7 additions and 0 deletions

View File

@@ -209,6 +209,12 @@ nm_logging_domains_to_string (void)
return g_string_free (str, FALSE);
}
gboolean
nm_logging_level_enabled (guint32 level)
{
return !!(log_level & level);
}
void _nm_log (const char *loc,
const char *func,
guint32 domain,