MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / FileSink

Method FileSink

Utilities/Logger.h:56–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54
55 public:
56 FileSink(const LogLevel minLevel, const std::string &fileName)
57 : LogSink(minLevel)
58 {
59 m_file.open(fileName.c_str(), std::ios::out);
60 if (m_file.fail())
61 std::cerr << "Failed to open file: " << fileName << "\n";
62 }
63
64 virtual ~FileSink()
65 {

Callers

nothing calls this directly

Calls 3

failMethod · 0.80
openMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected