I am trying to log the properties mentioned in application.properties using logback.
application.properties appName=myservice logging.pattern.console=%d{HH:mm:ss.SSS} [%thread] %appName %-5level - %msg%n %ex
tried the above pattern and got the below output :
13:10:52.193 [main] [%PARSER_ERROR[appName]]DEBUG - Execution of method runends : return value -> null
expected out is :
13:10:52.193 [main] [myservice]DEBUG - Execution of method runends : return value -> null
How can this be achieved?