Class LoggerFactory
Defined in File LoggerFactory.h
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)
- Parameters:
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
-
static inline std::unique_ptr<Logger> createLogger(const std::string &output_path, bool prettyPrint, bool truncateFile = true)