Skip to content

Commit

Permalink
add log4j2.xml that has the default config, into MANIFEST.MF
Browse files Browse the repository at this point in the history
  • Loading branch information
KengoTODA committed Nov 19, 2018
1 parent 2c26940 commit fd29bff
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spotbugs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ jar {
manifest {
attributes 'Main-Class': 'edu.umd.cs.findbugs.LaunchAppropriateUI',
'Bundle-Version': project.version,
'Class-Path': jarInClasspath.join(' ')
'Class-Path': jarInClasspath.join(' ') + ' config/'
}
}

Expand Down Expand Up @@ -234,6 +234,9 @@ distributions {
from([jar, project(':spotbugs-ant').jar]) {
into 'lib'
}
from ('log4j2.xml') {
into 'lib/config'
}
from('src/xsl') {
into 'src/xsl'
include '**/*.xsl'
Expand Down
13 changes: 13 additions & 0 deletions spotbugs/log4j2.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
</Console>
</Appenders>
<Loggers>
<Root level="error">
<AppenderRef ref="Console"/>
</Root>
</Loggers>
</Configuration>

0 comments on commit fd29bff

Please sign in to comment.