Home | History | Annotate | Download | only in base

Lines Matching refs:level

28   EtwEventLevel level = TRACE_LEVEL_NONE;
30 // Convert the log severity to the most appropriate ETW trace level.
34 level = TRACE_LEVEL_INFORMATION;
37 level = TRACE_LEVEL_WARNING;
40 level = TRACE_LEVEL_ERROR;
43 level = TRACE_LEVEL_FATAL;
47 level = TRACE_LEVEL_INFORMATION - severity;
50 // Bail if we're not logging, not at that level,
53 if (provider == NULL || level > provider->enable_level())
58 EtwMofEvent<1> event(kLogEventId, LOG_MESSAGE, level);
73 EtwMofEvent<5> event(kLogEventId, LOG_MESSAGE_FULL, level);
113 // Grab the old log level so we can restore it later.
116 // Convert the new trace level to a logging severity
117 // and enable logging at that level.
118 EtwEventLevel level = enable_level();
119 if (level == TRACE_LEVEL_NONE || level == TRACE_LEVEL_FATAL) {
121 } else if (level == TRACE_LEVEL_ERROR) {
123 } else if (level == TRACE_LEVEL_WARNING) {
125 } else if (level == TRACE_LEVEL_INFORMATION) {
127 } else if (level >= TRACE_LEVEL_VERBOSE) {
129 SetMinLogLevel(TRACE_LEVEL_INFORMATION - level);
134 // Restore the old log level.