I managed to get it working after i took a step back and realized what was going on, heh
On Wed, Jun 18, 2014 at 12:36 AM, Jorge Marizan <[email protected]> wrote: > Hi, I was facing the same issues a couple of weeks ago, this is how my > build file looks like: > > libraryDependencies += "org.slf4j" % "slf4j-log4j12" % "1.7.7" > > libraryDependencies += "com.typesafe.scala-logging" %% > "scala-logging-slf4j" % "2.1.2" > > Add this to resources/log4j.properties in your src folder of your sbt > based project: > > log4j.rootLogger=INFO,stdout > > log4j.appender.stdout=org.apache.log4j.ConsoleAppender > log4j.appender.stdout.Target=System.out > log4j.appender.stdout.layout=org.apache.log4j.PatternLayout > log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} > %-5p %c{1}:%L - %m%n > > log4j.appender.file=org.apache.log4j.RollingFileAppender > log4j.appender.file.File=events.log > log4j.appender.file.MaxFileSize=100KB > log4j.appender.file.layout=org.apache.log4j.PatternLayout > log4j.appender.file.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n > > log4j.logger.com.live-bar-app=INFO > > If you don't need rolling logs delete the related entries and there you go. > > Jorge. > > El martes, 17 de junio de 2014 22:44:46 UTC-4, Troy Payne escribió: > >> Martynas, >> >> What if I want akka to just log to stdout and not do anything special? >> >> On Tuesday, June 17, 2014 2:06:30 AM UTC-4, Martynas Mickevičius wrote: >>> >>> Hi Troy, >>> >>> Do you have logging back end dependency in your project? >>> >>> Documentation recommends logback: http://doc.akka.io/docs/akka/ >>> snapshot/java/logging.html#slf4j >>> 2014 birž. 17 01:54 "Troy Payne" <[email protected]> rašė: >>> >>>> Hello, >>>> >>>> I'm having trouble resolving the following: >>>> >>>> 1. Waiting for source changes... (press enter to interrupt) >>>> >>>> c0smo [DEBUG] [06/16/2014 21:22:08.758] [main] [EventStream] >>>> StandardOutLogger started >>>> >>>> c0smo[ERROR] SLF4J: Failed to load class "org.slf4j.impl. >>>> StaticLoggerBinder". >>>> >>>> c0smo[ERROR] SLF4J: Defaulting to no-operation (NOP) logger >>>> implementation >>>> >>>> c0smo[ERROR] SLF4J: See http://www.slf4j.org/codes. >>>> html#StaticLoggerBinder for further details. >>>> >>>> c0smo [DEBUG] [06/16/2014 21:22:10.820] [main] >>>> [EventStream(akka://c0smo)] logger log1-Slf4jLogger started >>>> >>>> c0smo[ERROR] SLF4J: Failed to load class "org.slf4j.impl. >>>> StaticMDCBinder". >>>> >>>> c0smo[ERROR] SLF4J: Defaulting to no-operation MDCAdapter >>>> implementation. >>>> >>>> c0smo [DEBUG] [06/16/2014 21:22:10.968] [main] >>>> [EventStream(akka://c0smo)] Default Loggers started >>>> >>>> c0smo[ERROR] SLF4J: See http://www.slf4j.org/codes. >>>> html#no_static_mdc_binder for further details. >>>> >>>> c0smo[ERROR] Uncaught error from thread >>>> [c0smo-akka.actor.default-dispatcher-5] >>>> shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled for >>>> ActorSystem[c0smo] >>>> >>>> c0smo[ERROR] java.lang.AbstractMethodError >>>> >>>> c0smo[ERROR] at akka.actor.ActorCell.create(ActorCell.scala:580) >>>> >>>> c0smo[ERROR] at akka.actor.ActorCell.invokeAll$1(ActorCell.scala:456) >>>> >>>> c0smo[ERROR] at akka.actor.ActorCell.systemInvoke(ActorCell.scala:478) >>>> >>>> c0smo[ERROR] at akka.dispatch.Mailbox.processAllSystemMessages( >>>> Mailbox.scala:263) >>>> >>>> c0smo[ERROR] at akka.dispatch.Mailbox.run(Mailbox.scala:219) >>>> >>>> c0smo[ERROR] at akka.dispatch.ForkJoinExecutorConfigurator$ >>>> AkkaForkJoinTask.exec(AbstractDispatcher.scala:393) >>>> >>>> c0smo[ERROR] at scala.concurrent.forkjoin.ForkJoinTask.doExec( >>>> ForkJoinTask.java:260) >>>> >>>> c0smo[ERROR] at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue. >>>> runTask(ForkJoinPool.java:1339) >>>> >>>> c0smo[ERROR] at scala.concurrent.forkjoin.ForkJoinPool.runWorker( >>>> ForkJoinPool.java:1979) >>>> >>>> c0smo[ERROR] at scala.concurrent.forkjoin.ForkJoinWorkerThread.run( >>>> ForkJoinWorkerThread.java:107) >>>> >>>> c0smo ... finished with exit code 255 >>>> >>>> >>>> >>>> I'm not sure why, but I can't get my logger to work. Here's what a >>>> snippet of my Build.scala looks like >>>> >>>> "com.typesafe.akka" % "akka-actor_2.10" % "2.3.3" % "compile", >>>> "com.typesafe.akka" % "akka-contrib_2.10" % "2.3.3" % "compile", >>>> "com.typesafe.akka" % "akka-testkit_2.10" % "2.3.3" % "test", >>>> "com.typesafe.akka" % "akka-camel_2.10" % "2.3.3" % "compile", >>>> "com.typesafe.akka" % "akka-slf4j_2.10" % "2.3.3" % "compile", >>>> >>>> Can someone help? Thanks! >>>> >>>> -- >>>> >>>>>>>>>> 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. >>>> >>> -- > >>>>>>>>>> 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 a topic in the > Google Groups "Akka User List" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/akka-user/gOw8OG0hFGY/unsubscribe. > To unsubscribe from this group and all its topics, 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. > -- >>>>>>>>>> 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.
