Home
last modified time | relevance | path

Searched refs:levelstr (Results 1 – 25 of 103) sorted by relevance

12345

/dports/sysutils/lnav/lnav-0.10.1/src/
H A Dlog_level.cc56 log_level_t abbrev2level(const char *levelstr, ssize_t len) in abbrev2level() argument
58 if (len == 0 || levelstr[0] == '\0') { in abbrev2level()
62 switch (toupper(levelstr[0])) { in abbrev2level()
68 switch (levelstr[len - 1]) { in abbrev2level()
82 toupper(levelstr[1]) == 'N' && in abbrev2level()
83 toupper(levelstr[2]) == 'V' && in abbrev2level()
84 toupper(levelstr[3]) == 'A' && in abbrev2level()
85 toupper(levelstr[4]) == 'L' && in abbrev2level()
86 toupper(levelstr[5]) == 'I' && in abbrev2level()
87 toupper(levelstr[6]) == 'D') { in abbrev2level()
H A Dlog_level_re.re36 log_level_t string2level(const char *levelstr, ssize_t len, bool exact)
41 len = strlen(levelstr);
44 if (((len == 1) || ((len > 1) && (levelstr[1] == ' '))) &&
45 (retval = abbrev2level(levelstr, 1)) != LEVEL_UNKNOWN) {
54 const YYCTYPE *YYCURSOR = (const unsigned char *) levelstr;
55 const YYCTYPE *YYLIMIT = (const unsigned char *) levelstr + len;
H A Dlog_level_re.cc38 log_level_t string2level(const char *levelstr, ssize_t len, bool exact) in string2level() argument
43 len = strlen(levelstr); in string2level()
46 if (((len == 1) || ((len > 1) && (levelstr[1] == ' '))) && in string2level()
47 (retval = abbrev2level(levelstr, 1)) != LEVEL_UNKNOWN) { in string2level()
56 const YYCTYPE *YYCURSOR = (const unsigned char *) levelstr; in string2level()
57 const YYCTYPE *YYLIMIT = (const unsigned char *) levelstr + len; in string2level()
H A Dlog_level.hh75 log_level_t string2level(const char *levelstr, ssize_t len = -1, bool exact = false);
77 log_level_t abbrev2level(const char *levelstr, ssize_t len = -1);
/dports/misc/logsurfer/logsurfer-1.8/src/
H A Dexec.c384 char *levelstr; local
386 if( (levelstr = strchr(faclevel,':')) == NULL){
390 levelstr++;
450 if( !strncmp(levelstr,"emerg",5) )
452 else if( !strncmp(levelstr,"alert",5) )
454 else if( !strncmp(levelstr,"crit",4) )
456 else if( !strncmp(levelstr,"err",3) )
458 else if( !strncmp(levelstr,"warn",4) )
460 else if( !strncmp(levelstr,"notice",6) )
462 else if( !strncmp(levelstr,"info",4) )
[all …]
/dports/net-p2p/c-lightning/lightning-0.10.2/common/
H A Dstatus_levels.c28 bool log_level_parse(const char *levelstr, size_t len, in log_level_parse() argument
32 if (streq_case(ll_names[i], levelstr, len)) { in log_level_parse()
38 if (streq_case("error", levelstr, len)) { in log_level_parse()
42 if (streq_case("warn", levelstr, len)) { in log_level_parse()
/dports/mail/exmh2/exmh-2.9.0/misc/
H A Dmhthread637 my $levelstr = $MARKUP_END;
644 $levelstr = $MARKUP_NODE_LAST_CHILD.$levelstr;
646 $levelstr = $MARKUP_NODE_CHILD_W_SIBLINGS.$levelstr;
650 $levelstr = $MARKUP_TREE_EMPTY.$levelstr;
652 $levelstr = $MARKUP_TREE_BRANCH.$levelstr;
662 $levelstr = $MARKUP_START.$levelstr;
667 prefix => $levelstr,
669 subject => $levelstr.$subj
/dports/multimedia/libcec/libcec-libcec-6.0.2/src/pyCecClient/
H A DpyCecClient.py173 levelstr = "ERROR: "
175 levelstr = "WARNING: "
177 levelstr = "NOTICE: "
179 levelstr = "TRAFFIC: "
181 levelstr = "DEBUG: "
183 print(levelstr + "[" + str(time) + "] " + message)
/dports/graphics/opencolorio/OpenColorIO-1.1.1/src/core/
H A DLogging.cpp60 std::string levelstr;
61 Platform::getenv(OCIO_LOGGING_LEVEL_ENVVAR, levelstr);
62 if(!levelstr.empty())
65 g_logginglevel = LoggingLevelFromString(levelstr.c_str());
/dports/graphics/opencolorio-tools/OpenColorIO-1.1.1/src/core/
H A DLogging.cpp60 std::string levelstr;
61 Platform::getenv(OCIO_LOGGING_LEVEL_ENVVAR, levelstr);
62 if(!levelstr.empty())
65 g_logginglevel = LoggingLevelFromString(levelstr.c_str());
/dports/graphics/py-opencolorio/OpenColorIO-1.1.1/src/core/
H A DLogging.cpp60 std::string levelstr;
61 Platform::getenv(OCIO_LOGGING_LEVEL_ENVVAR, levelstr);
62 if(!levelstr.empty())
65 g_logginglevel = LoggingLevelFromString(levelstr.c_str());
/dports/net/nsq/nsq-1.2.1/internal/lg/
H A Dlg.go60 func ParseLogLevel(levelstr string) (LogLevel, error) {
61 switch strings.ToLower(levelstr) {
73 return 0, fmt.Errorf("invalid log level '%s' (debug, info, warn, error, fatal)", levelstr)
/dports/dns/zkt/zkt-1.1.4/
H A Dlog.c441 const char *levelstr; in main() local
449 levelstr = *++argv; in main()
451 levelstr = "fatal"; in main()
453 level = lg_str2lvl (levelstr); in main()
455 dbg_val4 ("base level = %s(%d) newlevel = %s(%d)\n", levelstr, level, newlevelstr, level+1); in main()
462 levelstr, ".", in main()
/dports/misc/clex/clex-4.6.patch9/src/
H A Dlog.c65 append_record(const char *timestamp, const char *levelstr, const char *msg) in append_record() argument
67 fprintf(logfp,"%s %-15s %s\n",timestamp,levelstr,msg); in append_record()
83 append_record(plog->timestamp,plog->levelstr,convert2mb(USTR(plog->msg))); in logfile_open()
180 plog->levelstr = levdef[level].str; in log_record()
204 append_record(plog->timestamp,plog->levelstr,msg); in log_record()
/dports/multimedia/ccextractor/ccextractor-0.85/src/gpacmp4/
H A Derror.c292 char *levelstr = "@warning"; in gf_log_get_tools_levels() local
293 if (level == GF_LOG_QUIET) levelstr = "@quiet"; in gf_log_get_tools_levels()
294 else if (level == GF_LOG_ERROR) levelstr = "@error"; in gf_log_get_tools_levels()
295 else if (level == GF_LOG_WARNING) levelstr = "@warning"; in gf_log_get_tools_levels()
296 else if (level == GF_LOG_INFO) levelstr = "@info"; in gf_log_get_tools_levels()
297 else if (level == GF_LOG_DEBUG) levelstr = "@debug"; in gf_log_get_tools_levels()
302 strcat(szLogTools, levelstr); in gf_log_get_tools_levels()
315 strcat(szLogTools, levelstr); in gf_log_get_tools_levels()
/dports/net/mpich/mpich-3.4.3/modules/libfabric/src/
H A Dlog.c104 char *levelstr = NULL, *provstr = NULL, *subsysstr = NULL; in fi_log_init() local
108 fi_param_get_str(NULL, "log_level", &levelstr); in fi_log_init()
109 level = fi_convert_log_str(levelstr); in fi_log_init()
/dports/devel/hgsvn/hgsvn-0.6.0/hgsvn/run/
H A Dcommon.py38 levelstr = parser.rargs[0]
39 if levelstr[:1] != '-' :
41 level = int(levelstr)
/dports/net/hostapd-devel/hostap-14ab4a816/wpa_supplicant/
H A Dctrl_iface_udp.c527 char levelstr[64]; local
540 os_snprintf(levelstr, sizeof(levelstr), "IFNAME=%s <%d>",
543 os_snprintf(levelstr, sizeof(levelstr), "<%d>", level);
545 llen = os_strlen(levelstr);
550 os_memcpy(sbuf, levelstr, llen);
/dports/security/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
H A Dctrl_iface_udp.c506 char levelstr[64]; local
519 os_snprintf(levelstr, sizeof(levelstr), "IFACE=%s <%d>",
522 os_snprintf(levelstr, sizeof(levelstr), "<%d>", level);
524 llen = os_strlen(levelstr);
529 os_memcpy(sbuf, levelstr, llen);
/dports/security/wpa_supplicant-devel/hostap-14ab4a816/wpa_supplicant/
H A Dctrl_iface_udp.c527 char levelstr[64]; local
540 os_snprintf(levelstr, sizeof(levelstr), "IFNAME=%s <%d>",
543 os_snprintf(levelstr, sizeof(levelstr), "<%d>", level);
545 llen = os_strlen(levelstr);
550 os_memcpy(sbuf, levelstr, llen);
/dports/net/wpa_supplicant_gui/wpa_supplicant-2.9/wpa_supplicant/
H A Dctrl_iface_udp.c506 char levelstr[64]; local
519 os_snprintf(levelstr, sizeof(levelstr), "IFACE=%s <%d>",
522 os_snprintf(levelstr, sizeof(levelstr), "<%d>", level);
524 llen = os_strlen(levelstr);
529 os_memcpy(sbuf, levelstr, llen);
/dports/devel/cxxtools/cxxtools-2.2.1/src/
H A Dlog.cpp555 std::string levelstr; in operator >>=() local
563 it->getMember("level") >>= levelstr; in operator >>=()
564 if (levelstr.empty()) in operator >>=()
567 level = str2loglevel(levelstr, category); in operator >>=()
577 std::string levelstr; in operator >>=() local
580 it->getValue(levelstr); in operator >>=()
582 if (levelstr.empty()) in operator >>=()
585 level = str2loglevel(levelstr, category); in operator >>=()
/dports/irc/irssi/irssi-1.2.3/src/fe-common/core/
H A Dhilight-text.c485 char *chans, *levelstr; in hilight_print() local
518 levelstr = rec->level == 0 ? NULL : in hilight_print()
520 if (levelstr != NULL) in hilight_print()
521 levelstr = g_strconcat(levelstr, " ", NULL); in hilight_print()
525 levelstr != NULL ? levelstr : "", in hilight_print()
528 g_free_not_null(levelstr); in hilight_print()
/dports/java/openjdk11/jdk11u-jdk-11.0.13-8-1/src/hotspot/share/logging/
H A DlogSelection.cpp77 const char* levelstr = equals + 1; in parse_internal() local
78 level = LogLevel::from_string(levelstr); in parse_internal()
81 errstream->print("Invalid level '%s' in log selection.", levelstr); in parse_internal()
82 LogLevelType match = LogLevel::fuzzy_match(levelstr); in parse_internal()
/dports/java/openjdk11-jre/jdk11u-jdk-11.0.13-8-1/src/hotspot/share/logging/
H A DlogSelection.cpp77 const char* levelstr = equals + 1; in parse_internal() local
78 level = LogLevel::from_string(levelstr); in parse_internal()
81 errstream->print("Invalid level '%s' in log selection.", levelstr); in parse_internal()
82 LogLevelType match = LogLevel::fuzzy_match(levelstr); in parse_internal()

12345