Class LogOptions

  • Direct Known Subclasses:
    LogOptions.LogOptionsImpl

    public abstract class LogOptions
    extends java.lang.Object
    Logging options when using Behaviors.logMessages.
    • Constructor Detail

      • LogOptions

        public LogOptions()
    • Method Detail

      • apply

        public static LogOptions apply()
        Scala API: Create a new log options with defaults.
        Returns:
        (undocumented)
      • create

        public static LogOptions create()
        Java API: Create a new log options.
        Returns:
        (undocumented)
      • withEnabled

        public abstract LogOptions withEnabled​(boolean enabled)
        User control whether messages are logged or not. This is useful when you want to have an application configuration to control when to log messages.
        Parameters:
        enabled - (undocumented)
        Returns:
        (undocumented)
      • withLogger

        public abstract LogOptions withLogger​(Logger logger)
        A Logger to use when logging messages.
        Parameters:
        logger - (undocumented)
        Returns:
        (undocumented)
      • enabled

        public abstract boolean enabled()
      • logger

        public abstract scala.Option<Logger> logger()
      • getLogger

        public abstract java.util.Optional<Logger> getLogger()
        Java API