Registry / logging / log4j-api-scala-2-12

log4j-api-scala-2-12

JSON →
library13.1.0javamavenunverified

A Scala wrapper for the Log4j 2 API, providing Scala-friendly logging with macros.

<dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-api-scala_2.12</artifactId> <version>13.1.0</version> </dependency>
INSTALL
IMPORT
SIG · LOG4J-API-SCALA-2-
L
log4j-api-scala-2-12
loggingjavav13.1.0
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.

Logging
org.apache.logging.log4j.scala.Logging

Mixes in Logging trait to enable logging with Log4j 2.

import org.apache.logging.log4j.scala.Logging object Example extends Logging { def main(args: Array[String]): Unit = { logger.info("Hello, Log4j Scala!") } }
Debug
Known issues
gotchaVersion 13.x is for Scala 2.12; use different artifact for other Scala versions.
fix
Use log4j-api-scala_2.13 or log4j-api-scala_3 for Scala 2.13 or 3.
affects: >=13.0.0
Upgrade
Version history
13.1.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
1
Resources
log4j-api-scala-2-12 — mvn dependency:get log4j-api-scala-2-12 · libregistry