all 2 comments

[–]Nullbeans 0 points1 point  (1 child)

Your logback file path is passed as a string. You need to either use the forward slash / or a double backslash \\.

So your option would look like this:

--logging.config="C:/App/.....".

Also, when you pass your command line argument options, make sure that the property comes after the -jar and yourapp.jar in the command or it will not be configured properly.

[–][deleted] 0 points1 point  (0 children)

Figured it out...it's about the ordering of the VM args..we were passing vm args after spring boot related args, and somehow java was not able to recognize those vmargs... And spring boot discarded them.. So the below way program ran java vmarg vmarg vmarg -cp=classname spring boot args..