Re: [akka-user] modifying log level at run-time

2014-08-29 Thread Patrik Nordwall
Using log.isDebugEnabled followed by log.error is a bit strange in my opinion. Anyway, what you are looking for was solved here: https://github.com/akka/akka/pull/15413 It is not released yet. Cheers, Patrik On Thu, Aug 28, 2014 at 1:35 PM, Adam adamho...@gmail.com wrote: Hi, One more

Re: [akka-user] modifying log level at run-time

2014-08-29 Thread אדם חונן
Ah good. That makes sense - I was trying to see in the latest source code where this stems for and simply couldn't figure it out... BTW, I agree it is a bit strange. I only did it because I wanted to get a stack trace and the debug methods don't allow supplying an exception. But indeed I've

Re: [akka-user] modifying log level at run-time

2014-08-29 Thread Patrik Nordwall
On Fri, Aug 29, 2014 at 9:44 AM, אדם חונן adamho...@gmail.com wrote: Ah good. That makes sense - I was trying to see in the latest source code where this stems for and simply couldn't figure it out... BTW, I agree it is a bit strange. I only did it because I wanted to get a stack trace and

Re: [akka-user] modifying log level at run-time

2014-08-28 Thread Adam
Hi, One more follow up question. When using the setting advised by the documentation for this scenario (http://doc.akka.io/docs/akka/snapshot/java/logging.html#SLF4J) the only real gap from what I need is that with akka.logLevel set to DEBUG and with the SLF4J binding configured to INFO,

[akka-user] modifying log level at run-time

2014-08-19 Thread Adam
Hi, I know Akka's configuration does not get reloaded at run-time (see here https://groups.google.com/forum/#!msg/akka-user/bQA1zJP3yOY/fBVmGfRvYUYJ). It is however quite a common use case for logger settings to be re-loadable at run-time. Is there any way to achieve this? -- Read the

Re: [akka-user] modifying log level at run-time

2014-08-19 Thread Will Sargent
Yes, you can use SLF4JLogger, then cast to Logback and change the log level there. http://stackoverflow.com/a/3838108/5266 Will Sargent Consultant, Professional Services Typesafe http://typesafe.com, the company behind Play Framework http://www.playframework.com, Akka http://akka.io and Scala

Re: [akka-user] modifying log level at run-time

2014-08-19 Thread Will Sargent
Or, if you just want a reloadable runtime, you can tell Logback to watch for changes to the logging file using autoScan: http://logback.qos.ch/manual/configuration.html#autoScan Will Sargent Consultant, Professional Services Typesafe http://typesafe.com, the company behind Play Framework

Re: [akka-user] modifying log level at run-time

2014-08-19 Thread √iktor Ҡlang
or: defsetLogLevel(level: LogLevel http://doc.akka.io/api/akka/2.3.5/akka/event/Logging$$LogLevel.html): Unit http://www.scala-lang.org/api/2.10.4/index.html#scala.Unit Change log level: default loggers (i.e. from configuration file) are subscribed/unsubscribed as necessary so that they listen