-
Notifications
You must be signed in to change notification settings - Fork 416
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* public zio-http-logging * move zio-http-logging to zio.http.logging * scalafix
- Loading branch information
Showing
20 changed files
with
39 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
zio-http-logging/src/main/scala-2/zio/logging/macros/LoggerMacroExtensions.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
zio-http-logging/src/main/scala-3/zio/logging/macros/LoggerMacroExtensions.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
zio-http-logging/src/main/scala-3/zio/logging/macros/LoggerMacroImpl.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package zio.logging | ||
package zio.http.logging | ||
|
||
import java.time.format.DateTimeFormatter | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
zio-http-logging/src/main/scala/zio/logging/LoggerTransport.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package zio.logging | ||
package zio.http.logging | ||
|
||
import zio.test._ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
zio-http/src/main/scala/zio/http/service/logging/LogLevelTransform.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
package zio.http.service.logging | ||
|
||
import zio.logging.LogLevel | ||
import zio.http.logging.LogLevel | ||
import zio.stacktracer.TracingImplicits.disableAutoTrace // scalafix:ok; | ||
|
||
object LogLevelTransform { | ||
implicit class LogLevelWrapper(level: LogLevel) { | ||
def toNettyLogLevel: io.netty.handler.logging.LogLevel = level match { | ||
case zio.logging.LogLevel.Trace => io.netty.handler.logging.LogLevel.TRACE | ||
case zio.logging.LogLevel.Debug => io.netty.handler.logging.LogLevel.DEBUG | ||
case zio.logging.LogLevel.Info => io.netty.handler.logging.LogLevel.INFO | ||
case zio.logging.LogLevel.Warn => io.netty.handler.logging.LogLevel.WARN | ||
case zio.logging.LogLevel.Error => io.netty.handler.logging.LogLevel.ERROR | ||
case zio.http.logging.LogLevel.Trace => io.netty.handler.logging.LogLevel.TRACE | ||
case zio.http.logging.LogLevel.Debug => io.netty.handler.logging.LogLevel.DEBUG | ||
case zio.http.logging.LogLevel.Info => io.netty.handler.logging.LogLevel.INFO | ||
case zio.http.logging.LogLevel.Warn => io.netty.handler.logging.LogLevel.WARN | ||
case zio.http.logging.LogLevel.Error => io.netty.handler.logging.LogLevel.ERROR | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters