All Downloads are FREE. Search and download functionalities are using the official Maven repository.

js.log4j.package-info Maven / Gradle / Ivy

The newest version!
/**
 * Logging system. js-lib logging is a thin wrapper for log4j with next features:
 * 
    *
  • log record with formatted message, *
  • BUG level, see {@link js.log.LogLevel#BUG}, *
  • simplified configuration and seamless integration with Tomcat, *
  • remote console appender with Eclipse console, see {@link js.log4j.RemoteConsoleAppender}. *
*

Formatted Log

* Is not uncommon to need adding variables to log record and often it is solved using string concatenation. * The problem with string concatenation is it is performed even if log level is disabled. Solution to this problem * is to wrap into log level enabled check resulting in more verbose code. *
 *	if(log.isEnabledFor(Level.DEBUG)) {
 *		log.debug("Class loaded " + class.getName());
 *	}
 * 
* instead of *
 *	log.debug("Class loaded %s.", class.getName());
 * 
* The second solution executes string formatting only if log level is enabled but check for level is performed into logger writer. *

* This package contains a service provider interface and a server side implementation based on log4j. * SPI is implemented also for Android, see j(s)-android project. * * @author Iulian Rotaru */ package js.log4j;





© 2015 - 2025 Weber Informatics LLC | Privacy Policy