Class JsonFormatter

    • Constructor Detail

      • JsonFormatter

        public JsonFormatter()
        Creates a new JSON formatter.
      • JsonFormatter

        public JsonFormatter​(Map<StructuredFormatter.Key,​String> keyOverrides)
        Creates a new JSON formatter.
        Parameters:
        keyOverrides - a map of overrides for the default keys
    • Method Detail

      • isPrettyPrint

        public boolean isPrettyPrint()
        Indicates whether or not pretty printing is enabled.
        Returns:
        true if pretty printing is enabled, otherwise false
      • setPrettyPrint

        public void setPrettyPrint​(boolean prettyPrint)
        Turns on or off pretty printing.
        Parameters:
        prettyPrint - true to turn on pretty printing or false to turn it off