This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xml version="1.0" encoding="UTF-8"?> | |
<Configuration status="warn"> | |
<Properties> | |
<Property name="defaultLogPattern">%d [%-5p] ${~toVersion}-${~toBuild} [%c{1} : %M] - %m%n</Property> | |
<Property name="defaultLogPatternThrowable">${defaultLogPattern} %throwable{2}</Property> | |
<Property name="alternateConsoleLogPattern">%d{HH:mm:ss.SSS} %-5level %class{36} %L %M - %msg%xEx%n</Property> | |
<Property name="logDir">./log</Property> | |
<Property name="gzFileSuffix">%d{yyyy-MM-dd}-%i.log.gz</Property> | |
</Properties> | |
<Appenders> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<Configuration status="warn"> | |
<Properties> | |
<Property name="defaultLogPattern">%d [%-5p] [%c{1} : %M] - %m%n</Property> | |
<Property name="defaultLogPatternThrowable">${defaultLogPattern} %throwable{2}</Property> | |
<Property name="alternateConsoleLogPattern">%d{HH:mm:ss.SSS} %-5level %class{36} %L %M - %msg%xEx%n</Property> | |
<Property name="logDir">./log</Property> | |
<Property name="gzFileSuffix">%d{yyyy-MM-dd}-%i.log.gz</Property> | |
</Properties> | |
<Appenders> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.log4j.Level; | |
import org.apache.log4j.Logger; | |
public class RetailPOS { | |
private static final Logger log = Logger.getLogger(RetailPOS.class); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.logging.log4j.Level; | |
import org.apache.logging.log4j.LogManager; | |
import org.apache.logging.log4j.Logger; | |
public class RetailPOS { | |
private static final Logger log = LogManager.getLogger(RetailPOS.class); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (log.isDebugEnabled()) { | |
log.debug("maybe a more complex string production"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency org="c.f.testsupport" name="test-support" rev="[2.0,)" conf="test->test" /> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.log4j.ConsoleAppender; | |
import org.apache.log4j.Level; | |
import org.apache.log4j.Logger; | |
import org.apache.log4j.PatternLayout; | |
public class StateMachineTest { | |
Logger log = Logger.getLogger(StateMachineTest.class); | |
@BeforeClass | |
public static void classSetUp() throws Exception { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.logging.log4j.Level; | |
import org.apache.logging.log4j.LogManager; | |
import org.apache.logging.log4j.Logger; | |
public class StateMachineTest { | |
Logger log = LogManager.getLogger(StateMachineTest.class); | |
@BeforeClass | |
public static void classSetUp() { | |
LogUtil.configureRootLogger(Level.ERROR); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.logging.log4j.Level; | |
import org.apache.logging.log4j.LogManager; | |
import org.apache.logging.log4j.core.Appender; | |
import org.apache.logging.log4j.core.LoggerContext; | |
import org.apache.logging.log4j.core.appender.ConsoleAppender; | |
import org.apache.logging.log4j.core.config.AppenderRef; | |
import org.apache.logging.log4j.core.config.Configuration; | |
import org.apache.logging.log4j.core.config.LoggerConfig; | |
import org.apache.logging.log4j.core.layout.PatternLayout; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for I in `find . -name ivy.xml -o -name *.zip -o -name *.jar`; do SHA1SUM=`sha1sum $I | cut -c1-40`; STORED_SHA1=`cat $I.sha1`; if [ "$STORED_SHA1" != "$SHA1SUM" ]; then echo "NOT OK - $I: $STORED_SHA1 != $SHA1SUM"; echo $SHA1SUM > $I.sha1; if [ `cat $I.sha1` == "$SHA1SUM" ]; then echo "FIXED"; fi; fi; done |
OlderNewer