Skip navigation links

Package com.pixelmed.slf4j

Implements a thin wrapper around a subset of classes and methods of SLFJ.

See: Description

Package com.pixelmed.slf4j Description

Implements a thin wrapper around a subset of classes and methods of SLFJ.

The primary classes of this package are LoggerFactory and Logger.

Package Specification

Typical usage is as follows:

import com.pixelmed.slf4j.Logger;
import com.pixelmed.slf4j.LoggerFactory;

public class MyClass {

        private static final Logger slf4jlogger = LoggerFactory.getLogger(MyClass.class);
        
        public static void main(String arg[]) {
                try {
                        if (arg.length > 0) {
                                slf4jlogger.error("Too many arguments - expected 0 got {}",arg.length);
                        }
                }
                catch (Exception e) {
                        slf4jlogger.info("Not really expecting this",e);
                }
        }
}

Properties that affect the behavior of the log output even when no SLF4J implementation is provided are as follows:

Related Documentation

For overviews, tutorials, examples, guides, and tool documentation, please see:
Skip navigation links