I have aws lambda function implementation using java. I am using the standard log4j configuration to log into cloudwatch . I am able to access the aws lambda environment runtime variable into my log4j to set my log level. The only question I have - Is there a way we can default the log level to something in the absence of the environment variable value in the log4j.xml?
Below is the log4j.xml configuration I have.
< Loggers></br>
< Root level="debug"><\br>
< AppenderRef ref="Lambda" /><\br>
< /Root><\br>
< /Loggers>