See below...<br><br><div class="gmail_quote">On Fri, Jan 20, 2012 at 8:06 PM, Roger Spears <span dir="ltr"><<a href="mailto:rspears@northweststate.edu">rspears@northweststate.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div bgcolor="#FFFFFF" text="#000000">I also tried adding the 
class to the encoder. That didn't work either.<br>
<br>
Something else that's weird.  I imported Tony's project to my Netbeans 
and it stated it had reference issues.  It could not find 
logback-core-1.0.0.jar, logback-classic-1.0.0.jar and 
sl4j-api-1.6.4.jar.  I know I can resolve this, I'll just point them 
towards my versions of those jar's.  BUT, for giggles, I ran the project
 with the unresolved reference issues and it displayed the same thing on
 the console:<br>
<br>
19:57:35.609 [main] INFO  helloworld.HelloWorld - hello world!<br>
<br></div></blockquote><div><br></div><div><div class="gmail_quote"><div>I just imported that project into another machine, updated the JAR references (as they're not in the same location on the other machine), and ran it. I see this:</div>

<div><br></div></div><blockquote style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:40px;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-width:initial;border-color:initial;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px">

<div class="gmail_quote"><div><font face="'courier new', monospace" color="#999999">run:</font></div></div><div class="gmail_quote"><div><font face="'courier new', monospace">2012-01-20 21:10:50,277 </font></div>

</div><div class="gmail_quote"><div><font face="'courier new', monospace"> FOOBAR [main] INFO helloworld.HelloWorld - </font></div></div><div class="gmail_quote"><div><font face="'courier new', monospace"> hello world!<font color="#009900">BUILD SUCCESSFUL (total time: 0 seconds)</font></font></div>

</div></blockquote></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">
I'm not sure if that's a clue to anything or if that's the expected 
behavior since I have those files in my classpath.<br>
<br></div></blockquote><div><br></div><div>Try my exact steps to create that project:</div><div><br></div><div>1. Create a new Java project in Netbeans (or Eclipse...same steps here work).</div><div><br></div><div>2. Create a class named "HelloWorld", and copy this code into it:</div>

<div><div><font face="'courier new', monospace"><br></font></div><div><font face="'courier new', monospace">package helloworld;</font></div><div><font face="'courier new', monospace"><br></font></div>

<div><font face="'courier new', monospace">import org.slf4j.Logger;</font></div><div><font face="'courier new', monospace">import org.slf4j.LoggerFactory;</font></div><div><font face="'courier new', monospace"><br>

</font></div><div><font face="'courier new', monospace">public class HelloWorld {</font></div><div><font face="'courier new', monospace"><span class="Apple-tab-span" style="white-space:pre">    </span>private static final Logger LOG = LoggerFactory.getLogger(HelloWorld.class);</font></div>

<div><span class="Apple-tab-span" style="white-space:pre"><font face="'courier new', monospace">        </font></span></div><div><font face="'courier new', monospace"><span class="Apple-tab-span" style="white-space:pre">  </span>public static void main(String[] args) {</font></div>

<div><font face="'courier new', monospace"><span class="Apple-tab-span" style="white-space:pre">                </span>LOG.info("hello world!");</font></div><div><font face="'courier new', monospace"><span class="Apple-tab-span" style="white-space:pre">       </span>}</font></div>

<div><font face="'courier new', monospace">}</font></div></div><div><br></div></div><div class="gmail_quote"><div>3. Create a file named <font face="'courier new', monospace">logback.xml</font> in the <font face="'courier new', monospace">src</font> directory (do not put it under <font face="'courier new', monospace">src/helloworld</font> or any other subdirectory). Copy the following into the file:</div>

<div><br></div><div><div><font face="'courier new', monospace"><configuration></font></div><div><font face="'courier new', monospace">  <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"></font></div>

<div><font face="'courier new', monospace">    <encoder></font></div><div><font face="'courier new', monospace">      <pattern>%date %n FOOBAR [%thread] %level %logger{35} - %n %msg</pattern></font></div>

<div><font face="'courier new', monospace">    </encoder></font></div><div><font face="'courier new', monospace">  </appender></font></div><div><font face="'courier new', monospace">  <root level="DEBUG"></font></div>

<div><font face="'courier new', monospace">    <appender-ref ref="STDOUT" /></font></div><div><font face="'courier new', monospace">  </root></font></div><div><font face="'courier new', monospace"></configuration> </font></div>

</div><div><br></div><div><i>You can actually put <font face="'courier new', monospace">logback.xml</font> into any directory specified by the <font face="'courier new', monospace">run.classpath</font> property in <font face="'courier new', monospace">${project.dir}/nbproject/project.properties</font>. We used <font face="'courier new', monospace">src</font> here only because it's quick and easy.</i></div>

<div><br></div><div>4. Build and run the project.</div><div><br></div><div><br></div></div>