Package org.jboss.logging.util

Examples of org.jboss.logging.util.LoggerStream


      // Install catchers
      if (catchSystemOut)
      {
         logger = org.apache.log4j.Logger.getLogger("STDOUT");
         out = System.out;
         System.setOut(new LoggerStream(logger, Level.INFO, out));
         log.debug("Installed System.out adapter");
      }
     
      if (catchSystemErr)
      {
         logger = org.apache.log4j.Logger.getLogger("STDERR");
         err = System.err;
         OnlyOnceErrorHandler.setOutput(err);
         System.setErr(new LoggerStream(logger, Level.ERROR, err));
         log.debug("Installed System.err adapter");
      }
   }
View Full Code Here


/*     */   {
/* 406 */     if (this.catchSystemOut)
/*     */     {
/* 408 */       org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger("STDOUT");
/* 409 */       this.out = System.out;
/* 410 */       System.setOut(new LoggerStream(logger, Level.INFO, this.out));
/* 411 */       this.log.debug("Installed System.out adapter");
/*     */     }
/*     */
/* 414 */     if (this.catchSystemErr)
/*     */     {
/* 416 */       org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger("STDERR");
/* 417 */       this.err = System.err;
/* 418 */       OnlyOnceErrorHandler.setOutput(this.err);
/* 419 */       System.setErr(new LoggerStream(logger, Level.ERROR, this.err));
/* 420 */       this.log.debug("Installed System.err adapter");
/*     */     }
/*     */   }
View Full Code Here

TOP

Related Classes of org.jboss.logging.util.LoggerStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.