in src/main/java/software/amazon/awssdk/crt/Log.java [132:172]
public static void initLoggingFromSystemProperties() throws IllegalArgumentException {
String destinationString = System.getProperty(LOG_DESTINATION_PROPERTY_NAME);
String filenameString = System.getProperty(LOG_FILE_NAME_PROPERTY_NAME);
String levelString = System.getProperty(LOG_LEVEL_PROPERTY_NAME);
// If nothing was specified, disable logging
if (destinationString == null && levelString == null) {
return;
}
// If no destination wasn't specified, default to stderr
if (destinationString == null) {
destinationString = "Stderr";
}
LogDestination destination = LogDestination.valueOf(destinationString);
LogLevel level = LogLevel.Warn;
if (levelString != null) {
level = LogLevel.valueOf(levelString);
}
switch(destination) {
case Stdout:
initLoggingToStdout(level.getValue());
break;
case Stderr:
initLoggingToStderr(level.getValue());
break;
case File:
if (filenameString == null) {
return;
}
initLoggingToFile(level.getValue(), filenameString);
break;
case None:
break;
}
}