Package org.apache.pekko.actor
Interface ActorLogging
- All Known Subinterfaces:
AsyncWriteProxy,FSM<S,,D> LeveldbCompaction,LeveldbStore,LoggingFSM<S,,D> LoggingPersistentFSM<S,,D, E> PersistentFSM<S,,D, E> PersistentFSMBase<S,,D, E> SnapshotStore
- All Known Implementing Classes:
AbstractFSM,AbstractFSMWithStash,AbstractLoggingActor,AbstractLoggingFSM,AbstractPersistentFSM,AbstractPersistentFSMBase,AbstractPersistentLoggingFSM,ClusterClient,ClusterReceptionist,ClusterReceptionist.Internal$.ClientResponseTunnel,ClusterSingletonManager,ClusterSingletonProxy,DistributedPubSubMediator,InetAddressDnsResolver,JournalPerfSpec.BenchActor,LmdbDurableStore,NoSnapshotStore,PersistencePluginProxy,PersistenceTestKitPlugin,PersistenceTestKitSnapshotPlugin,RemoveInternalClusterShardingData,Replicator,SharedLeveldbStore,SimpleDnsManager,SnapshotStore,UntypedAbstractLoggingActor
public interface ActorLogging
Scala API: Mix in ActorLogging into your Actor to easily obtain a reference to a logger,
which is available under the name "log".
class MyActor extends Actor with ActorLogging {
def receive = {
case "pigdog" => log.info("We've got yet another pigdog on our hands")
}
}
-
Method Summary
-
Method Details
-
_log_$eq
-
log
LoggingAdapter log()
-