Lines Matching defs:level
207 log_check_channel(log_context lc, int level, log_channel chan) {
217 if (level > 0 && !debugging)
227 /* Some channels use the global level. */
229 chan_level = lc->level;
231 chan_level = chan->level;
233 if (level > chan_level)
240 log_check(log_context lc, int category, int level) {
251 if (level > 0 && !debugging)
263 if (log_check_channel(lc, level, lcl->channel))
270 log_vwrite(log_context lc, int category, int level, const char *format,
295 if (level > 0 && !debugging)
330 * Make a string representation of the current category and level
339 if (level >= log_critical) {
340 if (level >= 0) {
341 sprintf(level_buf, "debug %d: ", level);
344 level_str = level_text[-level-1];
346 sprintf(level_buf, "level %d: ", level);
356 if (!log_check_channel(lc, level, chan))
371 if (level >= log_critical)
372 pri = (level >= 0) ? 0 : -level;
430 log_write(log_context lc, int category, int level, const char *format, ...) {
434 log_vwrite(lc, category, level, format, args);
462 nlc->level = 0;
558 lc->level = value;
580 log_new_syslog_channel(unsigned int flags, int level, int facility) {
590 chan->level = level;
597 log_new_file_channel(unsigned int flags, int level,
609 chan->level = level;
663 chan->level = log_info;