Skip to content

Commit

Permalink
playframework#1367 fix carriage return
Browse files Browse the repository at this point in the history
  • Loading branch information
xael-fry committed Jan 31, 2022
1 parent 7ccf446 commit 28e2659
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 39 deletions.
33 changes: 17 additions & 16 deletions framework/test-src/play/testlog4j.properties
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# appender Console
appender.console.type = Console
appender.console.name = STDOUT
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = %d [%t] %p %c - %m%n
appender.console.filter.threshold.type = ThresholdFilter
appender.console.filter.threshold.level = INFO
# play logger
logger.app.name = play
logger.app.level = INFO
# play logger
logger.custom.name = logtest.properties
logger.custom.level = WARN
# root logger
rootLogger.level = DEBUG
rootLogger.appenderRef.console.ref = STDOUT
# appender Console
appender.console.type = Console
appender.console.name = STDOUT
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = %d [%t] %p %c - %m%n
appender.console.filter.threshold.type = ThresholdFilter
appender.console.filter.threshold.level = INFO
# play logger
logger.app.name = play
logger.app.level = INFO
# play logger
logger.custom.name = logtest.properties
logger.custom.level = WARN
# root logger
rootLogger.level = DEBUG
rootLogger.appenderRef.console.ref = STDOUT

46 changes: 23 additions & 23 deletions framework/test-src/play/testlog4j.xml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
<Configuration name="ConfigTest" status="ERROR" monitorInterval="5">
<Appenders>

<SystemPropertyArbiter propertyName="env" propertyValue="dev">
<Console name="Out">
<PatternLayout pattern="%m%n"/>
</Console>
</SystemPropertyArbiter>
<SystemPropertyArbiter propertyName="env" propertyValue="prod">
<List name="Out">
</List>
</SystemPropertyArbiter>

</Appenders>
<Loggers>
<Logger name="logtest.xml" level="trace" >
<AppenderRef ref="Out"/>
</Logger>
<Root level="debug">
<AppenderRef ref="Out"/>
</Root>
</Loggers>
</Configuration>
<Configuration name="ConfigTest" status="ERROR" monitorInterval="5">
<Appenders>

<SystemPropertyArbiter propertyName="env" propertyValue="dev">
<Console name="Out">
<PatternLayout pattern="%m%n"/>
</Console>
</SystemPropertyArbiter>
<SystemPropertyArbiter propertyName="env" propertyValue="prod">
<List name="Out">
</List>
</SystemPropertyArbiter>

</Appenders>
<Loggers>
<Logger name="logtest.xml" level="trace" >
<AppenderRef ref="Out"/>
</Logger>
<Root level="debug">
<AppenderRef ref="Out"/>
</Root>
</Loggers>
</Configuration>

0 comments on commit 28e2659

Please sign in to comment.