const mixinafIoc::LogProvider

afIoc::LogProvider : afIoc::DependencyProvider

(Service) - A DependencyProvider that injects Log instances. By default, a pod name is used to create the log instance.

|Type type->Log| { return type.pod.log }

If log instances with different names are desired, change the #logCreatorFunc. Do this at registry startup:

class AppModule {

  @Contribute { serviceType=RegistryStartup# }
  static Void changeLoggers(Configuration conf, LogProvider logProvider) {
    conf.add |->| {
      logProvider.logCreatorFunc = |Type type->Log| { return Log.get(type.name) } 
    }
  }
} 
logCreatorFunc

Source

abstract |Type->Log logCreatorFunc

The func that creates log instances from a given type. Change it at will!

Defaults to |Type type->Log| { return type.pod.log }