/** all of the options have been set, create the socket handler and wait for connections. */ public void activateOptions() { try { sh = new SocketHandler(port); sh.start(); } catch(Exception e) { e.printStackTrace(); } }
/** Handles a log event. For this appender, that means writing the message to each connected client. */ protected void append(LoggingEvent event) { if(sh != null) { sh.send(layout.format(event)); if(layout.ignoresThrowable()) { String[] s = event.getThrowableStrRep(); if (s != null) { StringBuffer buf = new StringBuffer(); for(int i = 0; i < s.length; i++) { buf.append(s[i]); buf.append("\r\n"); } sh.send(buf.toString()); } } } }
/** Handles a log event. For this appender, that means writing the message to each connected client. */ protected void append(LoggingEvent event) { if(sh != null) { sh.send(layout.format(event)); if(layout.ignoresThrowable()) { String[] s = event.getThrowableStrRep(); if (s != null) { StringBuffer buf = new StringBuffer(); for(int i = 0; i < s.length; i++) { buf.append(s[i]); buf.append("\r\n"); } sh.send(buf.toString()); } } } }
/** Handles a log event. For this appender, that means writing the message to each connected client. */ protected void append(LoggingEvent event) { if(sh != null) { sh.send(layout.format(event)); if(layout.ignoresThrowable()) { String[] s = event.getThrowableStrRep(); if (s != null) { StringBuffer buf = new StringBuffer(); for(int i = 0; i < s.length; i++) { buf.append(s[i]); buf.append("\r\n"); } sh.send(buf.toString()); } } } }
/** Handles a log event. For this appender, that means writing the message to each connected client. */ protected void append(LoggingEvent event) { if(sh != null) { sh.send(layout.format(event)); if(layout.ignoresThrowable()) { String[] s = event.getThrowableStrRep(); if (s != null) { StringBuffer buf = new StringBuffer(); for(int i = 0; i < s.length; i++) { buf.append(s[i]); buf.append("\r\n"); } sh.send(buf.toString()); } } } }
/** Handles a log event. For this appender, that means writing the message to each connected client. */ protected void append(LoggingEvent event) { if(sh != null) { sh.send(layout.format(event)); if(layout.ignoresThrowable()) { String[] s = event.getThrowableStrRep(); if (s != null) { StringBuffer buf = new StringBuffer(); for(int i = 0; i < s.length; i++) { buf.append(s[i]); buf.append("\r\n"); } sh.send(buf.toString()); } } } }
/** all of the options have been set, create the socket handler and wait for connections. */ public void activateOptions() { try { sh = new SocketHandler(port); sh.start(); } catch(InterruptedIOException e) { Thread.currentThread().interrupt(); e.printStackTrace(); } catch(IOException e) { e.printStackTrace(); } catch(RuntimeException e) { e.printStackTrace(); } super.activateOptions(); }
/** all of the options have been set, create the socket handler and wait for connections. */ public void activateOptions() { try { sh = new SocketHandler(port); sh.start(); } catch(InterruptedIOException e) { Thread.currentThread().interrupt(); e.printStackTrace(); } catch(IOException e) { e.printStackTrace(); } catch(RuntimeException e) { e.printStackTrace(); } super.activateOptions(); }
/** all of the options have been set, create the socket handler and wait for connections. */ public void activateOptions() { try { sh = new SocketHandler(port); sh.start(); } catch(InterruptedIOException e) { Thread.currentThread().interrupt(); e.printStackTrace(); } catch(IOException e) { e.printStackTrace(); } catch(RuntimeException e) { e.printStackTrace(); } super.activateOptions(); }
/** Handles a log event. For this appender, that means writing the message to each connected client. */ protected void append(LoggingEvent event) { sh.send(this.layout.format(event)); if(layout.ignoresThrowable()) { String[] s = event.getThrowableStrRep(); if (s != null) { int len = s.length; for(int i = 0; i < len; i++) { sh.send(s[i]); sh.send(Layout.LINE_SEP); } } } }
/** Handles a log event. For this appender, that means writing the message to each connected client. */ protected void append(LoggingEvent event) { sh.send(this.layout.format(event)); if(layout.ignoresThrowable()) { String[] s = event.getThrowableStrRep(); if (s != null) { int len = s.length; for(int i = 0; i < len; i++) { sh.send(s[i]); sh.send(Layout.LINE_SEP); } } } }
/** all of the options have been set, create the socket handler and wait for connections. */ public void activateOptions() { try { sh = new SocketHandler(port); sh.start(); } catch(InterruptedIOException e) { Thread.currentThread().interrupt(); e.printStackTrace(); } catch(IOException e) { e.printStackTrace(); } catch(RuntimeException e) { e.printStackTrace(); } super.activateOptions(); }
public void finalize() { close(); }
public void finalize() { close(); }
public void finalize() { close(); }
/** Handles a log event. For this appender, that means writing the message to each connected client. */ protected void append(LoggingEvent event) { sh.send(this.layout.format(event)); if(layout.ignoresThrowable()) { String[] s = event.getThrowableStrRep(); if (s != null) { int len = s.length; for(int i = 0; i < len; i++) { sh.send(s[i]); sh.send(Layout.LINE_SEP); } } } }
public void finalize() { close(); }
public void finalize() { close(); }