Lines Matching defs:level
209 log_check_channel(log_context lc, int level, log_channel chan) {
219 if (level > 0 && !debugging)
229 /* Some channels use the global level. */
231 chan_level = lc->level;
233 chan_level = chan->level;
235 if (level > chan_level)
242 log_check(log_context lc, int category, int level) {
253 if (level > 0 && !debugging)
265 if (log_check_channel(lc, level, lcl->channel))
272 log_vwrite(log_context lc, int category, int level, const char *format,
297 if (level > 0 && !debugging)
332 * Make a string representation of the current category and level
341 if (level >= log_critical) {
342 if (level >= 0) {
343 sprintf(level_buf, "debug %d: ", level);
346 level_str = level_text[-level-1];
348 sprintf(level_buf, "level %d: ", level);
358 if (!log_check_channel(lc, level, chan))
373 if (level >= log_critical)
374 pri = (level >= 0) ? 0 : -level;
432 log_write(log_context lc, int category, int level, const char *format, ...) {
436 log_vwrite(lc, category, level, format, args);
464 nlc->level = 0;
560 lc->level = value;
582 log_new_syslog_channel(unsigned int flags, int level, int facility) {
592 chan->level = level;
599 log_new_file_channel(unsigned int flags, int level,
611 chan->level = level;
665 chan->level = log_info;