Class GatlingSimulationLogFormatter

  • All Implemented Interfaces:
    SimulationLogFormatter

    public class GatlingSimulationLogFormatter
    extends java.lang.Object
    implements SimulationLogFormatter
    Gatling log formatter is used to format the step log entries so that the Gatling tooling can process them to create load testing reports. Gatling reports can be created by running gatling.sh in the command-line:
       $ gatling.sh -ro <path-to-dir-containing-simulations>
     
    Gatling step log might change in future, so the current format is associated with the version defined with GATLING_VERSION.
    Since:
    1.0
    Author:
    Erhan Bagdemir
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String format​(LogEvent event)
      Gatling formatter, writes the log event in the Gatling format so that Gatling can generate reports:
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • GATLING_HEADLINE_TEMPLATE

        public static final java.lang.String GATLING_HEADLINE_TEMPLATE
        See Also:
        Constant Field Values
    • Constructor Detail

      • GatlingSimulationLogFormatter

        public GatlingSimulationLogFormatter()
    • Method Detail

      • format

        public java.lang.String format​(LogEvent event)
        Gatling formatter, writes the log event in the Gatling format so that Gatling can generate reports:
        Specified by:
        format in interface SimulationLogFormatter
        Parameters:
        event - Log event.
        Returns:
        Formatted string containing the step entry.