Package com.ppm.logging
Class LoggerService
- java.lang.Object
-
- com.ppm.logging.LoggerService
-
- All Implemented Interfaces:
FluentLogger
public final class LoggerService extends Object implements FluentLogger
Implements FluentLogger- Author:
- Pedro T. Oliveira
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LogOperationsall()Invoke Operations in all loggersstatic FluentLoggerby(Class<?> clazz)Initialize a new Fluent Logger based on a classConsoleLoggerconsole()Invoke Console Logger OperationsFileLoggerfile()Invoke File Logger Operationsstatic FluentLoggerinit(Class<?> clazz)Initialize a new Fluent Logger based on a classRemoteLoggerremote()Invoke Remote Logger Operations
-
-
-
Method Detail
-
init
public static FluentLogger init(Class<?> clazz)
Initialize a new Fluent Logger based on a class- Parameters:
clazz- a Class to be attached to the Logger- Returns:
- FluentLogger instance
-
by
public static FluentLogger by(Class<?> clazz)
Initialize a new Fluent Logger based on a class- Parameters:
clazz- a Class to be attached to the Logger- Returns:
- FluentLogger instance
-
all
public LogOperations all()
Description copied from interface:FluentLoggerInvoke Operations in all loggers- Specified by:
allin interfaceFluentLogger- Returns:
- All Message Builders
-
console
public ConsoleLogger console()
Description copied from interface:FluentLoggerInvoke Console Logger Operations- Specified by:
consolein interfaceFluentLogger- Returns:
- Console Logger Message Builder
-
file
public FileLogger file()
Description copied from interface:FluentLoggerInvoke File Logger Operations- Specified by:
filein interfaceFluentLogger- Returns:
- File Logger Message Builder
-
remote
public RemoteLogger remote()
Description copied from interface:FluentLoggerInvoke Remote Logger Operations- Specified by:
remotein interfaceFluentLogger- Returns:
- Remote Logger Message Builder
-
-