Skip to content

Commit

Permalink
Fixed test logging
Browse files Browse the repository at this point in the history
  • Loading branch information
benfortuna committed Aug 29, 2024
1 parent d44dc30 commit f371639
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 25 deletions.
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ dependencies {
// spock
testImplementation platform("org.spockframework:spock-bom:$spockVersion"),
"org.spockframework:spock-core",
"org.apache.logging.log4j:log4j-core:$log4jVersion"
"org.apache.logging.log4j:log4j-core:$log4jVersion",
"org.apache.logging.log4j:log4j-slf4j2-impl:$log4jVersion"
}

compileTestJava {
Expand Down
5 changes: 3 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ical4jVersion=4.0.0
ical4jVCardVersion=2.0.0-beta4
ical4jVersion=4.0.3
ical4jVCardVersion=2.0.0-rc1

groovyVersion=3.0.21
log4jVersion=2.23.1
bndVersion=6.2.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,27 +31,10 @@
#

## set root logging preferences..
log4j.logger.net.fortuna.ical4j=info, stdout

log4j.logger.net.fortuna.ical4j.filter=info, stdout
log4j.additivity.net.fortuna.ical4j.filter=false

log4j.logger.net.fortuna.ical4j.model=info, stdout
log4j.additivity.net.fortuna.ical4j.model=false

log4j.logger.net.fortuna.ical4j.model.TimeZoneTest=info, stdout
log4j.additivity.net.fortuna.ical4j.model.TimeZoneTest=false

log4j.logger.net.fortuna.ical4j.model.component.Observance=debug, stdout
log4j.additivity.net.fortuna.ical4j.model.component.Observance=false

log4j.logger.net.fortuna.ical4j.model.property.DateProperty=debug, stdout
log4j.additivity.net.fortuna.ical4j.model.property.DateProperty=false

log4j.logger.net.fortuna.ical4j.model.UtcOffsetTest=debug, stdout
log4j.additivity.net.fortuna.ical4j.model.UtcOffsetTest=false
rootLogger=info, stdout

## appender: stdout..
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=[%d] %-5p [%t] %c{1} - %m%n
appender.stdout.type=Console
appender.stdout.name=stdout
appender.stdout.layout.type=PatternLayout
appender.stdout.layout.pattern=[%d] %-5p [%t] %c{1} - %m%n

0 comments on commit f371639

Please sign in to comment.