Applying Maslow’s hierarchy of needs to your IT decisions, you will find that your operations and infrastructure comprise the lowest level. Your absolute “musts” include a reliable Internet connection, email, security, backup, and disaster recovery. These elements are fundamental, and you cannot succeed and grow without them. Small companies need these critical areas to function [...]
Are you seeing duplicate or multiple log messages using log4j xml configuration?
The configuration below produces three log messages.
log4j.xml:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="console" class="org.apache.log4j.ConsoleAppender">
<param name="Target" value="System.out" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%-5p %c{1} – %m%n" />
</layout>
</appender>
<logger name="com.acme.LoggingTest">
<level value="debug" />
<appender-ref ref="console" />
</logger>
<logger name="com.acme">
<level value="debug" />
<appender-ref ref="console" />
</logger>
<root>
<priority value="debug" />
<appender-ref ref="console" />
</root>
</log4j:configuration>
LoggingTest.java:
package com.acme;
public class LoggingTest {
private [...]
Tags:
additive,
additivity,
appender,
configuration,
duplicate,
java,
log,
log4j,
log4j.xml,
logger,
multiple,
problem,
xml No Comments |
Read the rest of this entry »
Selecting an IT company to help build your growing business can be a daunting undertaking, to say the least… With such an abundance of software development companies vying for your business, what should you look for? How do you separate the good from the not-so-good? Other companies that have successfully tackled this challenge have found [...]