Hi,

Having a stupid issue with akka logging. can any one help!


In log file, I can see other logging for external libraries, such as:

*20:43:11.289 [run-main-3] DEBUG c.n.h.c.p.n.NettyAsyncHttpProvider - 
Number of application's worker threads is 8*
*20:43:11.360 [run-main-3] DEBUG c.n.h.c.p.n.NettyAsyncHttpProvider - *
*Non cached request *
*DefaultHttpRequest(chunked: false)*
*GET / HTTP/1.1*


But my own MyActor logging is not working.

However, I can see that log on eclipse ide console.


*Actor*
*-----------*
class MyActor extends Actor with ActorLogging {
.... 
def receive = {
case _ =>
log.debug(s"\n\n\t**** path = {} \n ", self.path)
...
}
}



*application.conf *
*-------------------*
akka {
  loglevel = DEBUG    
  actor {      
    debug {        
      receive = on      
    }    
  }   
}


*logback.xml*
*-----------------*
<configuration>
  <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
    <!-- encoders are assigned the type
         ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
    <encoder>
      <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - 
%msg%n</pattern>
    </encoder>
  </appender>
  
  <!-- Simple file output -->
  <appender name="FILE" 
class="ch.qos.logback.core.rolling.RollingFileAppender">
    <!-- encoder defaults to 
ch.qos.logback.classic.encoder.PatternLayoutEncoder -->
    <encoder>
      <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - 
%msg%n</pattern>
    </encoder>

    <rollingPolicy 
class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
      <!-- rollover daily -->
      
<fileNamePattern>logs/web-link-checker-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
      <timeBasedFileNamingAndTriggeringPolicy
          class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
        <!-- or whenever the file size reaches 64 MB -->
        <maxFileSize>64 MB</maxFileSize>
      </timeBasedFileNamingAndTriggeringPolicy>
    </rollingPolicy>

    <!-- Safely log to the same file from multiple JVMs. Degrades 
performance! -->
    <!-- <prudent>true</prudent> -->
  </appender>  
  
  <logger name="simple" level="TRACE" />

  <root level="TRACE">
    <appender-ref ref="STDOUT" />
    <appender-ref ref="FILE" />
  </root>
</configuration>





-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to