change source tag in log events from AnyRef to String

- ensure that no “complex” things are attached to a LogEvent (think
  serialization)
- ensure no escaping the “this” reference via LoggingBus during
  constructors (e.g. ActorSystem)
- change it so that
    + Actor/ActorRef are represented by their address
    + Class[_] by simpleName
    + String by itself
- this means that people need to think a little more while deciding how
  “this” should look like in logging (which I think is a good thing)
This commit is contained in:
Roland 2011-11-18 11:59:43 +01:00
parent d63c511401
commit 6a8e516b6c
35 changed files with 213 additions and 174 deletions

View file

@ -34,7 +34,8 @@ class RemoteActorRefProvider(
val dispatcher: MessageDispatcher,
val scheduler: Scheduler) extends ActorRefProvider {
val log = Logging(eventStream, this)
val log = Logging(eventStream, "RemoteActorRefProvider")
val local = new LocalActorRefProvider(settings, rootPath, eventStream, dispatcher, scheduler)
def deathWatch = local.deathWatch