Skip to content

Commit

Permalink
fix module logback config
Browse files Browse the repository at this point in the history
  • Loading branch information
kermitt2 committed Nov 11, 2023
1 parent f3b0ed1 commit feaa2da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ project("grobid-core") {
it.isDirectory() ? [] : localLibs.contains(it.getName()) ? zipTree(it) : []
}
}
exclude("logback.xml")
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}

Expand Down Expand Up @@ -326,10 +327,6 @@ project(":grobid-service") {
// "${System.env.CONDA_PREFIX}/lib/python${pythonVersion}/site-packages/jep"
// }
systemProperty "java.library.path", javaLibraryPath

}

configurations {
}

tasks.distZip.enabled = false
Expand Down Expand Up @@ -379,6 +376,8 @@ project(":grobid-service") {
attributes 'Main-Class': 'org.grobid.core.main.batch.GrobidMain'
}

exclude("logback.xml")

duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}

Expand Down Expand Up @@ -434,6 +433,7 @@ project(":grobid-trainer") {
it.isDirectory() ? [] : localLibs.contains(it.getName()) ? zipTree(it) : []
}
}
exclude("logback.xml")

duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
Expand Down
4 changes: 2 additions & 2 deletions grobid-core/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

<!-- logs in rolling files -->
<appender name="rollingFile" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>./logs/grobid.log</file>
<file>./logs/grobid-batch.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>./logs/grobid-%d{yyyy-MM-dd}.log</fileNamePattern>
<fileNamePattern>./logs/grobid-batch-%d{yyyy-MM-dd}.log</fileNamePattern>
<maxHistory>5</maxHistory>
<totalSizeCap>100MB</totalSizeCap>
</rollingPolicy>
Expand Down

0 comments on commit feaa2da

Please sign in to comment.