| Hello, Thank you for your suggestion of add the ClassLoader. I don't know why I didn't think of that. Maybe it's because I'm fairly new to Java. I added the following two lines to my HelloWorld.java class: String URL = ""; System.out.println(ClassLoader.getSystemResource(URL)); The output I receive on the console looks like this: file:/Users/roger/NetBeansProjects/HelloWorld/build/classes/logback.xml 12:30:01.762 [main] DEBUG helloworld - Hello world. When I open the logback.xml file that is listed in the console output, it looks exactly like the custom logback.xml file I created. The problem still exists that it's not picking up on the custom pattern I have in logback.xml. That pattern looks like this: <pattern>%date %n [%thread] %level %logger{35} - %n %msg</pattern> I would have expected to see the date followed by a jump down to a new line followed by [main] followed by a jump down to a new line and etc. etc etc. Am I wrong to think logback uses %n as new line characters? My experience has been with log4j and %n generates the newline in its pattern. Thanks again, Rogert
|
_______________________________________________ Logback-user mailing list [email protected] http://mailman.qos.ch/mailman/listinfo/logback-user


