Class LoggerFactory

Class Documentation

class LoggerFactory

Factory for creating instances of flamegpu::Logger

Public Static Functions

static inline std::unique_ptr<Logger> createLogger(const std::string &output_path, bool prettyPrint, bool truncateFile = true)
  • output_path – File for the log to be output to, this will be used to determine the logger type

  • prettyPrint – If false, the output data will be in a compact/minified format which may not be very readable

  • truncateFile – If true and output file already exists, it will be truncated