Package org.fissore.slf4j
Class FluentLoggerFactory
- java.lang.Object
-
- org.fissore.slf4j.FluentLoggerFactory
-
public class FluentLoggerFactory extends Object
The entry point for using slf4j-fluent. It creates a newFluentLoggerassociated with the given name or class.
-
-
Constructor Summary
Constructors Constructor Description FluentLoggerFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FluentLoggergetLogger(Class<?> clazz)Creates a newFluentLoggerassociated with the given class.static FluentLoggergetLogger(String name)Creates a newFluentLoggerassociated with the given name.
-
-
-
Method Detail
-
getLogger
public static FluentLogger getLogger(String name)
Creates a newFluentLoggerassociated with the given name.- Parameters:
name- the name of the logger- Returns:
- a new
FluentLoggerinstance that wraps aLogger
-
getLogger
public static FluentLogger getLogger(Class<?> clazz)
Creates a newFluentLoggerassociated with the given class.- Parameters:
clazz- the class to associate this logger to- Returns:
- a new
FluentLoggerinstance that wraps aLogger
-
-