Package com.vmware.aria.operations
Class AdapterLogger
-
- All Implemented Interfaces:
public final class AdapterLogger
-
-
Method Summary
Modifier and Type Method Description final static UnitsetupLogging(String filename, Integer backupFileCount, Long maxSize)Sets up logging using the given parameters final static UnitsetupLogging(String filename, Integer backupFileCount)Sets up logging using the given parameters final static UnitsetupLogging(String filename)Sets up logging using the given parameters final static LoggergetLogger()Returns a Logger with the name of the calling class. final static LoggergetLogger(String name)Returns a Logger with the name of the calling class. final static Unitrotate()Manually trigger the log files to rotate. -
-
Method Detail
-
setupLogging
final static Unit setupLogging(String filename, Integer backupFileCount, Long maxSize)
Sets up logging using the given parameters
- Parameters:
filename- The name of the file to log to.backupFileCount- The total number of backup files to retain.maxSize- The maximum size in bytes of each file before the file automatically rotates to a new one.
-
setupLogging
final static Unit setupLogging(String filename, Integer backupFileCount)
Sets up logging using the given parameters
- Parameters:
filename- The name of the file to log to.backupFileCount- The total number of backup files to retain.
-
setupLogging
final static Unit setupLogging(String filename)
Sets up logging using the given parameters
- Parameters:
filename- The name of the file to log to.
-
getLogger
final static Logger getLogger()
Returns a Logger with the name of the calling class. This is identical to calling Log4j's LogManager.getLogger() method. It is reimplemented here for convenience.
- Returns:
The Logger for the calling class.
-
getLogger
final static Logger getLogger(String name)
Returns a Logger with the name of the calling class. This is identical to calling Log4j's LogManager.getLogger(name) method. It is reimplemented here for convenience.
- Parameters:
name- the name of the Logger.- Returns:
The Logger with the given name.
-
-
-
-