Skip to content

Commit

Permalink
Upgrade logback-core to 1.5.8 (#3648)
Browse files Browse the repository at this point in the history
  • Loading branch information
xerial authored Sep 24, 2024
1 parent 455b2d6 commit 83e5d89
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ import java.io.{File, Flushable}
import java.nio.charset.StandardCharsets
import java.util.logging.ErrorManager
import java.util.{logging => jl}

import ch.qos.logback.core.ContextBase
import ch.qos.logback.core.encoder.EncoderBase
import ch.qos.logback.core.rolling.{RollingFileAppender, SizeAndTimeBasedFNATP, TimeBasedRollingPolicy}
import ch.qos.logback.core.rolling.{
RollingFileAppender,
SizeAndTimeBasedFileNamingAndTriggeringPolicy,
TimeBasedRollingPolicy
}
import ch.qos.logback.core.util.FileSize
import wvlet.log.LogFormatter.AppLogFormatter

Expand Down Expand Up @@ -78,7 +81,7 @@ class LogRotationHandler(

val fileAppender = new RollingFileAppender[String]()
val rollingPolicy = new TimeBasedRollingPolicy[String]
val triggeringPolicy = new SizeAndTimeBasedFNATP[String]
val triggeringPolicy = new SizeAndTimeBasedFileNamingAndTriggeringPolicy[String]

rollingPolicy.setContext(context)
val fileNameStem =
Expand Down
2 changes: 1 addition & 1 deletion airspec/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ lazy val airspecLog =
airspecJVMBuildSettings,
libraryDependencies ++= Seq(
// For rotating log files
"ch.qos.logback" % "logback-core" % "1.3.14"
"ch.qos.logback" % "logback-core" % "1.5.8"
)
)
.jsSettings(
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ val logDependencies = { scalaVersion: String =>

val logJVMDependencies = Seq(
// For rotating log files
"ch.qos.logback" % "logback-core" % "1.3.14"
"ch.qos.logback" % "logback-core" % "1.5.8"
)

// airframe-log should have minimum dependencies
Expand Down

0 comments on commit 83e5d89

Please sign in to comment.