java -Dlogback.configurationFile=/path/to/config.xmlchapters.configuration.MyApp1
Thanks for your kindness and replay, David> If you check out the configuration chapter of the logback documentation it tells you how to specify alternate locations for logback.xml.
In FAQ / logback classic / 3rd question, it say I can not. Am I missing something?As I understand you are one of the developer of Logback. It seems you know how to do. So, can you briefly tell me how I can do?2014-08-17 12:46 GMT+03:00 David Roussel <nabble@diroussel.xsmail.com>:
Hi,
If you check out the configuration chapter of the logback documentation it tells you how to specify alternate locations for logback.xml.
As for testing I just tend to test manually. To use automated testing you'd need to read in the log file from disk and verify it's contents somehow.
David
> _______________________________________________
> On 17 Aug 2014, at 10:14, gokturk mavus <gokturkmavus@gmail.com> wrote:
>
> In the project hierarchy shown below, I want to put logback.xml
> configuration file as shown below. After having done so, do I need
> anything so as to have logback fully working. Also, how do I test my
> configuration file is fully working? ( How can I test, sort of unit
> test, my configuration file to see whether it works or not?)
>
>
> .............Project folder
> ..................| ----------------- src
> ..................| ----------------- configuration
> ..............................................|------------------
> logback_and_slf4j
> .......................................................................|------------------
> logback.xml
>
>
> Platform: windows
> Eclipse:Version: Indigo Service Release 2 Build id: 20120216-1857
> Logback-user mailing list
> Logback-user@qos.ch
> http://mailman.qos.ch/mailman/listinfo/logback-user
_______________________________________________
Logback-user mailing list
Logback-user@qos.ch
http://mailman.qos.ch/mailman/listinfo/logback-user
_______________________________________________
Logback-user mailing list
Logback-user@qos.ch
http://mailman.qos.ch/mailman/listinfo/logback-user