Appenders Internal Logging

Simple, pluggable logging used in Appenders Project(s)

License

License

Categories

Categories

Logging Application Layer Libs
GroupId

GroupId

org.appenders.logging
ArtifactId

ArtifactId

appenders-logging
Last Version

Last Version

1.0
Release Date

Release Date

Type

Type

jar
Description

Description

Appenders Internal Logging
Simple, pluggable logging used in Appenders Project(s)
Project URL

Project URL

https://github.com/appenders/appenders-logging
Source Code Management

Source Code Management

https://github.com/appenders/appenders-logging

Download appenders-logging

How to add to project

<!-- https://jarcasting.com/artifacts/org.appenders.logging/appenders-logging/ -->
<dependency>
    <groupId>org.appenders.logging</groupId>
    <artifactId>appenders-logging</artifactId>
    <version>1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.appenders.logging/appenders-logging/
implementation 'org.appenders.logging:appenders-logging:1.0'
// https://jarcasting.com/artifacts/org.appenders.logging/appenders-logging/
implementation ("org.appenders.logging:appenders-logging:1.0")
'org.appenders.logging:appenders-logging:jar:1.0'
<dependency org="org.appenders.logging" name="appenders-logging" rev="1.0">
  <artifact name="appenders-logging" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.appenders.logging', module='appenders-logging', version='1.0')
)
libraryDependencies += "org.appenders.logging" % "appenders-logging" % "1.0"
[org.appenders.logging/appenders-logging "1.0"]

Dependencies

provided (3)

Group / Artifact Type Version
org.apache.logging.log4j : log4j-core jar 2.13.3
org.apache.logging.log4j : log4j-api jar 2.13.3
org.apache.logging.log4j : log4j-slf4j-impl jar 2.13.3

test (3)

Group / Artifact Type Version
junit : junit jar 4.13.1
org.mockito : mockito-core jar 3.5.13
org.jacoco : org.jacoco.agent jar 0.8.3

Project Modules

There are no modules declared in this project.

Appenders (internal) Logging

This project provides a very simple implementation of "binding-less" logger.

Log4j2 StatusLogger is used by default, but any other logging implementation can be set instead.

Usage

InternalLogging.getLogger().info("Hello, World"); // Will use Log4j2 StatusLogger if Log4j2 jars are available 

or

InternalLogging.setLogger(new Logger() {
        @Override
        public void warn(String messageFormat, Object... parameters) {
            // Your logging implementation
        }
}; 

InternalLogging.getLogger().warn("Hello, World");

Versions

Version
1.0