public static class SessionState.LogHelper extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
isSilent |
protected org.slf4j.Logger |
LOG |
Constructor and Description |
---|
LogHelper(org.slf4j.Logger LOG) |
LogHelper(org.slf4j.Logger LOG,
boolean isSilent) |
Modifier and Type | Method and Description |
---|---|
PrintStream |
getChildErrStream()
Get the child process error stream for HiveServer2 or HiveCli.
|
PrintStream |
getChildOutStream()
Get the child process output stream for HiveServer2 or HiveCli.
|
static PrintStream |
getErrStream()
Get the console error stream for HiveServer2 or HiveCli.
|
static PrintStream |
getInfoStream()
Get the console info stream for HiveServer2 or HiveCli.
|
boolean |
getIsSilent()
Is the logging to the info stream is enabled, or not.
|
PrintStream |
getOutStream()
Get the console output stream for HiveServer2 or HiveCli.
|
void |
logInfo(String info)
Logs into the log file.
|
void |
logInfo(String info,
String detail)
Logs into the log file.
|
void |
printError(String error)
Logs an error into the log file, and into the HiveServer2 or HiveCli error stream too.
|
void |
printError(String error,
String detail)
Logs an error into the log file, and into the HiveServer2 or HiveCli error stream too.
|
void |
printInfo(String info)
Logs info into the log file, and if the LogHelper is not silent then into the HiveServer2 or
HiveCli info stream too.
|
void |
printInfo(String info,
boolean isSilent)
Logs info into the log file, and if not silent then into the HiveServer2 or HiveCli info
stream too.
|
void |
printInfo(String info,
String detail)
Logs info into the log file, and if the LogHelper is not silent then into the HiveServer2 or
HiveCli info stream too.
|
void |
printInfo(String info,
String detail,
boolean isSilent)
Logs info into the log file, and if not silent then into the HiveServer2 or HiveCli info
stream too.
|
public LogHelper(org.slf4j.Logger LOG)
public LogHelper(org.slf4j.Logger LOG, boolean isSilent)
public PrintStream getOutStream()
public static PrintStream getInfoStream()
public static PrintStream getErrStream()
public PrintStream getChildOutStream()
public PrintStream getChildErrStream()
public boolean getIsSilent()
public void logInfo(String info)
info
- The log messagepublic void logInfo(String info, String detail)
info
- The log messagedetail
- Extra detail to log which will be not printed if nullpublic void printInfo(String info)
info
- The log messagepublic void printInfo(String info, boolean isSilent)
info
- The log messageisSilent
- If true then the message will not be printed to the info streampublic void printInfo(String info, String detail)
info
- The log messagedetail
- Extra detail to log which will be not printed if nullpublic void printInfo(String info, String detail, boolean isSilent)
info
- The log messagedetail
- Extra detail to log which will be not printed if nullisSilent
- If true then the message will not be printed to the info streampublic void printError(String error)
error
- The log messagepublic void printError(String error, String detail)
error
- The log messagedetail
- Extra detail to log which will be not printed if nullCopyright © 2022 The Apache Software Foundation. All rights reserved.