Registry / logging / log4cats-slf4j-2-12

log4cats-slf4j-2-12

JSON →
library1.1.1javamavenunverified

SLF4J binding for log4cats, a functional logging library for Scala.

<dependency> <groupId>io.chrisdavenport</groupId> <artifactId>log4cats-slf4j_2.12</artifactId> <version>1.1.1</version> </dependency>
INSTALL
IMPORT
SIG · LOG4CATS-SLF4J-2-1
L
log4cats-slf4j-2-12
loggingjavav1.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Slf4jLogger
io.chrisdavenport.log4cats.slf4j.Slf4jLogger

Creates a logger and logs an info message using log4cats with SLF4J.

import io.chrisdavenport.log4cats.slf4j.Slf4jLogger import cats.effect.IO object Example extends cats.effect.IOApp { def run(args: List[String]): IO[ExitCode] = { Slf4jLogger.create[IO].flatMap { logger => logger.info("Hello from log4cats!") *> IO.pure(ExitCode.Success) } } }
Debug
Known issues
breakingThis artifact is for Scala 2.12; use the appropriate version for your Scala major version.
fix
Select the artifact with the correct Scala version suffix (e.g., _2.13, _3).
affects: *
Upgrade
Version history
1.1.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources
log4cats-slf4j-2-12 — mvn dependency:get log4cats-slf4j-2-12 · libregistry