Class LoggingAwareMultiCommand

  • All Implemented Interfaces:, java.lang.AutoCloseable
    Direct Known Subclasses:
    KeyStoreCli, ShardToolCli

    public abstract class LoggingAwareMultiCommand
    extends MultiCommand
    A multi-command that is aware of logging. This class should be preferred over the base MultiCommand class for any CLI tools that depend on core Elasticsearch as they could directly or indirectly touch classes that touch logging and as such logging needs to be configured.
    • Constructor Detail

      • LoggingAwareMultiCommand

        public LoggingAwareMultiCommand​(java.lang.String description)
        Construct the command with the specified command description. This command will have logging configured without reading Elasticsearch configuration files.
        description - the command description