com.uncarved.helpers

trait CanLog

[source: com/uncarved/helpers/CanLog.scala]

trait CanLog
extends AnyRef
CanLog is a trait you can mix in to provide easy log4j logging for your scala classes. Sample usage:
     class MyClass extends CanLog {
         def doSomething(temp: Int) = {
             logger.debug("About to doSomething")
             if(temp>100) 
                 logger.warn("It's mighty hot! temp: " + temp)
             
             logger.debug("Done with doSomething")
         }
     }
 
See Also
http://www.uncarved.com/blog/LogHelper.mrk
Direct Known Subclasses:
BasicClient, BasicClient.ConfiguredHttpClient, BasicClient.RequestInterceptor, BasicClient.ResponseInterceptor

Value Summary
lazy val logger : org.apache.log4j.Logger
val loggerName : java.lang.String
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Value Details
val loggerName : java.lang.String

lazy val logger : org.apache.log4j.Logger