3334353637383940414243
} public static void configure(LoggerContext lc) { StatusManager sm = lc.getStatusManager(); if(sm != null) { sm.add(new InfoStatus("Setting up default configuration.", lc)); } ConsoleAppender<ILoggingEvent> ca = new ConsoleAppender<ILoggingEvent>(); ca.setContext(lc); ca.setName("console"); PatternLayout pl = new PatternLayout();
9596979899100101
if (sm == null) return; sm.add(s); } static void addInfo(Context context, String msg) { addStatus(context, new InfoStatus(msg, origin)); }
72737475767778
sm.add(status); } } public void addInfo(String msg) { addStatus(new InfoStatus(msg, getOrigin())); }
76777879808182
public void addInfo(String msg) { addStatus(new InfoStatus(msg, getOrigin())); } public void addInfo(String msg, Throwable ex) { addStatus(new InfoStatus(msg, getOrigin(), ex)); }
79808182838485
sm.add(status); } } public void addInfo(String msg) { addStatus(new InfoStatus(msg, getDeclaredOrigin())); }
83848586878889
public void addInfo(String msg) { addStatus(new InfoStatus(msg, getDeclaredOrigin())); } public void addInfo(String msg, Throwable ex) { addStatus(new InfoStatus(msg, getDeclaredOrigin(), ex)); }
909192939495969798
private void postSuccessfulWrite() { if (recoveryCoordinator != null) { recoveryCoordinator = null; statusCount = 0; addStatus(new InfoStatus("Recovered from IO failure on " + getDescription(), this)); } }
117118119120121122123124125126127
try { close(); } catch (IOException e) { } addStatusIfCountNotOverLimit(new InfoStatus( "Attempting to recover from IO failure on " + getDescription(), this)); // subsequent writes must always be in append mode try { os = openNewOutputStream();
138139140141142143144145146
addStatus(s); } if (statusCount == STATUS_COUNT_LIMIT) { addStatus(s); addStatus(new InfoStatus("Will supress future messages regarding " + getDescription(), this)); } }
91929394959697