![JAR search and dependency download from the Maven repository](/logo.png)
refcodes-logger-alt-spring.1.0.5.source-code.runtimelogger-context.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of refcodes-logger-alt-spring Show documentation
Show all versions of refcodes-logger-alt-spring Show documentation
Artifact extending the refcodes logger for application (runtime) logging.
<?xml version="1.0" encoding="UTF-8"?> <!-- =========================================================================== // REFCODES.ORG // ============================================================================= // This code is copyright (c) by Siegfried Steiner, Munich, Germany and licensed // under the following (see "http://en.wikipedia.org/wiki/Multi-licensing") // licenses: // ============================================================================= // GNU General Public License, v3.0 ("http://www.gnu.org/licenses/gpl-3.0.html") // ============================================================================= // Apache License, v2.0 ("http://www.apache.org/licenses/LICENSE-2.0") // ============================================================================= // Please contact the copyright holding author(s) of the software artifacts in // question for licensing issues not being covered by the above listed licenses, // also regarding commercial licensing models or regarding the compatibility // with other open source licenses. // ========================================================================= --> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd"> <!-- /////////////////////////////////////////////////////////////////// --> <!-- CONSOLE-LOGGER-HEADER --> <!-- /////////////////////////////////////////////////////////////////// --> <bean id="consoleLoggerHeader" class="org.refcodes.logger.impls.RuntimeLoggerHeaderImpl" lazy-init="true" > <!-- =============================================================== --> <!-- Determines whether to include the stack trace in the log or not --> <!-- where "true" means to include and "false" to exclude the stack --> <!-- trace (default is "true"): --> <!-- =============================================================== --> <!-- <constructor-arg value="true" /> --> <!-- =============================================================== --> </bean> <!-- /////////////////////////////////////////////////////////////////// --> <!-- LOG4J-LOGGER-HEADER --> <!-- /////////////////////////////////////////////////////////////////// --> <!-- This header maks the log output look like log4j output. --> <!-- /////////////////////////////////////////////////////////////////// --> <bean id="log4jLoggerHeader" class="org.refcodes.logger.alt.log4j.impls.Log4jLoggerHeaderImpl" lazy-init="true" /> <!-- /////////////////////////////////////////////////////////////////// --> <!-- CONSOLE-LOGGER --> <!-- /////////////////////////////////////////////////////////////////// --> <bean id="consoleLogger" class="org.refcodes.logger.alt.console.impls.ConsoleLoggerSingleton" lazy-init="true" /> <!-- /////////////////////////////////////////////////////////////////// --> <!-- LOG4J-LOGGER --> <!-- /////////////////////////////////////////////////////////////////// --> <!-- CAUTION: Log4j also requires a "log4j.xml" configuration file which --> <!-- has settings applied on top of the runtime logger's settings which --> <!-- may cause unexpected behavior, e.g. regarding the log level. --> <!-- /////////////////////////////////////////////////////////////////// --> <bean id="log4jLogger" class="org.refcodes.logger.alt.log4j.impls.Log4jLoggerImpl" lazy-init="true"> <constructor-arg ref="log4jLoggerHeader" /> </bean> <!-- /////////////////////////////////////////////////////////////////// --> <!-- REFCODES-LOGGER --> <!-- /////////////////////////////////////////////////////////////////// --> <!-- This is the default bean used by the REFCODES' SpringLoggerImpl --> <!-- /////////////////////////////////////////////////////////////////// --> <bean id="runtimeLogger" class="org.refcodes.logger.impls.RuntimeLoggerImpl"> <property name="logger" ref="consoleLogger" /> <property name="logPriority" value="DEBUG" /> </bean> </beans>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy