Skip to content

Commit

Permalink
Merge pull request #43 from ChristopherDavenport/fixImplicitSummoning
Browse files Browse the repository at this point in the history
Fix Implicit Summoning Methods
  • Loading branch information
ChristopherDavenport authored Jun 19, 2018
2 parents ff2d081 + 9366fdd commit a0859eb
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
This file summarizes **notable** changes for each release, but does not describe internal changes unless they are particularly exciting.

----
## <a name="0.0.7"></a>New and Noteworthy for Version 0.0.7

- Add Implicit Summoning for Logger Hierarchy Traits [#43](https://github.com/ChristopherDavenport/log4cats/pull/43)

## <a name="0.0.6"></a>New and Noteworthy for Version 0.0.6

Remove cats dependency from log4cats-core. Publish a log4s module with scalaz-ioeffect module name log4scalaz-log4s.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ trait SelfAwareLogger[F[_]] extends Logger[F] {
def isInfoEnabled: F[Boolean]
def isWarnEnabled: F[Boolean]
def isErrorEnabled: F[Boolean]
}
object SelfAwareLogger {
def apply[F[_]](implicit ev: SelfAwareLogger[F]): SelfAwareLogger[F] = ev
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
package io.chrisdavenport.log4cats

trait SelfAwareStructuredLogger[F[_]] extends SelfAwareLogger[F] with StructuredLogger[F]
trait SelfAwareStructuredLogger[F[_]] extends SelfAwareLogger[F] with StructuredLogger[F]

object SelfAwareStructuredLogger {
def apply[F[_]](implicit ev: SelfAwareStructuredLogger[F]): SelfAwareStructuredLogger[F] = ev
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ trait StructuredLogger[F[_]] extends Logger[F] {
def info(ctx: (String, String)*)(msg: => String): F[Unit]
def warn(ctx: (String, String)*)(msg: => String): F[Unit]
def error(ctx: (String, String)*)(msg: => String): F[Unit]
}

object StructuredLogger{
def apply[F[_]](implicit ev: StructuredLogger[F]): StructuredLogger[F] = ev
}

0 comments on commit a0859eb

Please sign in to comment.