public class RedshiftLogger extends Object
| Constructor and Description |
|---|
RedshiftLogger(String fileName,
String logLevel,
boolean driver,
String maxLogFileSize,
String maxLogFileCount) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkLogLevel(LogLevel level,
RedshiftLogger log)
Determines if logging should occur based on the LogLevel.
|
void |
close() |
void |
flush() |
static RedshiftLogger |
getDriverLogger() |
static String |
getLogFileUsingPath(String logLevel,
String logPath) |
LogLevel |
getLogLevel() |
static boolean |
isEnable()
Check for logging enable or not.
|
void |
log(LogLevel logLevel,
String msg,
Object... msgArgs) |
void |
log(LogLevel logLevel,
Throwable thrown,
String msg,
Object... msgArgs) |
void |
logDebug(String msg,
Object... msgArgs) |
void |
logError(Exception error) |
void |
logError(String msg,
Object... msgArgs) |
void |
logFunction(boolean entry,
Object... params) |
void |
logInfo(String msg,
Object... msgArgs) |
static String |
maskSecureInfo(String msg,
String[] tokens,
String tokenizer) |
static Properties |
maskSecureInfoInProps(Properties info) |
static String |
maskSecureInfoInUrl(String url) |
static void |
removeUnrecognizedPropertiesFromLogging(Properties loggedProperties)
fetches set of properties defined in the RedshiftProperty enum class and properties defined in public docs
compares against given properties and removes unrecognized properties from logs
|
static String |
replaceIgnoreCase(Properties info,
String key,
String newVal) |
public static boolean isEnable()
public static RedshiftLogger getDriverLogger()
public LogLevel getLogLevel()
public static boolean checkLogLevel(LogLevel level, RedshiftLogger log)
level - The level of logging to attempt.log - The ILogger to try to log to.public static Properties maskSecureInfoInProps(Properties info)
public static void removeUnrecognizedPropertiesFromLogging(Properties loggedProperties)
public static String replaceIgnoreCase(Properties info, String key, String newVal)
public void logError(Exception error)
public void logFunction(boolean entry,
Object... params)
public void close()
public void flush()
Copyright © 2024 Amazon.com Inc.. All rights reserved.