{"id":77153,"library":"log4cats-slf4j-3","title":"Log4cats SLF4J","description":"SLF4J binding for log4cats, a functional logging library for Scala 3, providing type-safe logging.","status":"active","version":"2.8.0","language":"java","source_language":null,"source_url":"https://github.com/typelevel/log4cats","tags":["logging","scala","functional","slf4j","cats"],"install":[{"cmd":"<dependency>\n  <groupId>org.typelevel</groupId>\n  <artifactId>log4cats-slf4j_3</artifactId>\n  <version>2.8.0</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'org.typelevel:log4cats-slf4j_3:2.8.0'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"Slf4jLogger","correct":"org.typelevel.log4cats.slf4j.Slf4jLogger"}],"quickstart":{"code":"import org.typelevel.log4cats.slf4j.Slf4jLogger;\nimport cats.effect.IO;\n\npublic class Example {\n    public static void main(String[] args) {\n        Slf4jLogger<IO> logger = Slf4jLogger.getLogger[IO];\n        logger.info(\"Hello, world!\");\n    }\n}","lang":"java","description":"Creates a Slf4jLogger instance and logs an informational message."},"warnings":[{"fix":"Use a Java logging library like SLF4J directly if not using Scala.","message":"Requires Scala 3 and Cats Effect; not compatible with Java-only projects.","severity":"breaking","affected_versions":"all"}],"env_vars":null,"search_vec":"'3':13 'bind':4 'cat':23 'function':8,21 'librari':10 'log':9,18,19 'log4cats':1,6 'provid':14 'safe':17 'scala':12,20 'slf4j':2,3,22 'type':16 'type-saf':15","created_at":"2026-06-17T19:48:47.275716+00:00","updated_at":"2026-06-17T19:48:47.275716+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://typelevel.org/log4cats","github":"https://github.com/typelevel/log4cats","docs":"https://appdoc.app/artifact/org.typelevel/log4cats-slf4j_3/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["logging"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}