Package software.amazon.awssdk.crt
Class Log
java.lang.Object
software.amazon.awssdk.crt.Log
Static wrapper around native and crt logging.
It is NOT safe to change the logging setup after it has been initialized.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum that controls how detailed logging should be.static enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidExamines logging-related system properties and initializes the logging system if they have been properly set.static voidinitLoggingToFile(Log.LogLevel level, String filename) Initializes logging to go to a filestatic voidinitLoggingToStderr(Log.LogLevel level) Initializes logging to go to stderrstatic voidinitLoggingToStdout(Log.LogLevel level) Initializes logging to go to stdoutstatic voidlog(Log.LogLevel level, Log.LogSubject subject, String message) Logs a message at the specified log level.
-
Constructor Details
-
Log
public Log()
-
-
Method Details
-
log
Logs a message at the specified log level.- Parameters:
level- (for filtering purposes) level attached to the log invocationsubject- (for filtering purposes) log subjectmessage- log string to write
-
initLoggingFromSystemProperties
Examines logging-related system properties and initializes the logging system if they have been properly set.- Throws:
IllegalArgumentException
-
initLoggingToStdout
Initializes logging to go to stdout- Parameters:
level- the filter level to apply to log calls
-
initLoggingToStderr
Initializes logging to go to stderr- Parameters:
level- the filter level to apply to log calls
-
initLoggingToFile
Initializes logging to go to a file- Parameters:
level- the filter level to apply to log callsfilename- name of the file to direct logging to
-