MCPcopy
hub / github.com/questdb/questdb / LogLevel

Class LogLevel

core/src/main/java/io/questdb/log/LogLevel.java:33–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31import io.questdb.std.datetime.TimeZoneRules;
32
33public final class LogLevel {
34 public static int ADVISORY = 16;
35 public static String ADVISORY_HEADER = " A ";
36 public static int CRITICAL = 8;
37 public static String CRITICAL_HEADER = " C ";
38 public static int DEBUG = 1;
39 public static String DEBUG_HEADER = " D ";
40 public static int ERROR = 4;
41 public static String ERROR_HEADER = " E ";
42 public static int INFO = 2;
43 public static int ALL = DEBUG | INFO | ERROR | CRITICAL | ADVISORY;
44 public static String INFO_HEADER = " I ";
45 public static int MAX = Numbers.msb(LogLevel.ADVISORY) + 1;
46 public static int MASK = ~(-1 << (MAX));
47 public static DateFormat TIMESTAMP_FORMAT;
48 public static String TIMESTAMP_TIMEZONE;
49 public static DateLocale TIMESTAMP_TIMEZONE_LOCALE;
50 public static TimeZoneRules TIMESTAMP_TIMEZONE_RULES;
51
52 private LogLevel() {
53 }
54
55 public static void init(CairoConfiguration config) {
56 if (config.getLogLevelVerbose()) {
57 ADVISORY_HEADER = " ADVISORY ";
58 CRITICAL_HEADER = " CRITICAL ";
59 DEBUG_HEADER = " DEBUG ";
60 ERROR_HEADER = " ERROR ";
61 INFO_HEADER = " INFO ";
62 }
63
64 if (config.getLogTimestampTimezone() != null) {
65 TIMESTAMP_TIMEZONE = config.getLogTimestampTimezone();
66 TIMESTAMP_TIMEZONE_RULES = config.getLogTimestampTimezoneRules();
67 TIMESTAMP_TIMEZONE_LOCALE = config.getLogTimestampTimezoneLocale();
68 TIMESTAMP_FORMAT = config.getLogTimestampFormat();
69 }
70 }
71}

Callers

nothing calls this directly

Calls 1

msbMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…