Package com.xceptance.xlt.api.engine

# Interface DataLogger

public interface DataLogger
The `DataLogger` logs custom data for a specific scope to a log file, from where they may be read again during test report generation. The `DataLogger` instance responsible for a certain test user may be obtained from the current session's data manager object via
invalid @link

    {@link Session#getDataManager()#dataLogger(String scope)

}.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `log(String lineOfData)`
  Adds a line of custom data to the log file.
  `void`
  `setExtension(String extension)`
  Sets the file extension.
  `void`
  `setHeader(String header)`
  Adds a header to the log file.

- ## Method Details

  - ### setHeader

    void setHeader(String header)
    Adds a header to the log file. This only makes sense if no data is in the file yet, so the header may not be written if this is not the case.
    Parameters:
      `header` -

  - ### setExtension

    void setExtension(String extension)
    Sets the file extension. System requirements apply.
    Parameters:
      `extension` -

  - ### log

    void log(String lineOfData)
    Adds a line of custom data to the log file.
    Parameters:
      `lineOfData` -