A library extension to CIT Messaging, that provides a logging abstraction
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.externalToolBuilders
src/main/java/org/macroing/cit/logger
.classpath
.gitignore
.project
COPYING
COPYING.LESSER
README.md
build.xml

README.md

CIT Logger (v. 0.0.1)

CIT Logger is a library extension to CIT Messaging, that provides a logging abstraction.

It's part of the Common Infrastructure Tools (CIT) project hosted by Macroing.org.

Supported Features

  • Logger - The core component of this library that lets you log.
  • Level - A logging level that supports arbitrary names.
  • LoggerConfigurator - An API that can configure a Logger in arbitrary ways.

Examples

import org.macroing.cit.logger.Logger;

public class MyLogger {
    public static void main(String[] args) {
        Logger logger = Logger.newInstance();
        logger.getMessageChannel().addMessageChannelObserver((messageChannel, message) -> System.out.printf("%s%n", message));
        logger.start();
        logger.info("Hello, World!");
    }
}

Dependencies

Note

This library has not been properly released yet. This means, even though it says it's version 1.0.0 in the build.xml file and all Java source code files, it should not be treated as such. When this library gets released, it will be tagged and available on the "releases" page.