public TelemetryEventAppender() {
   // Hardcoding pattern because should not be under host application control
   super.setLayout(new PatternLayout(PATTERN));
 }
コード例 #2
0
 /**
  * Set the layout for this appender. Note that some appenders have their own (fixed) layouts or do
  * not use one. For example, the {@link org.apache.log4j.net.SocketAppender} ignores the layout
  * set here.
  */
 public void setLayout(Layout layout) {
   appender.setLayout(layout);
 }