fileLogStream.hpp
Go to the documentation of this file.
1
2#pragma once
3
4#include <fstream>
5
7
8namespace by {
9
14 class _nout fileLogStream: public stream {
15 BY_ME(fileLogStream, stream)
16
17 public:
18 // fileLogStream:
20 explicit fileLogStream(const std::string& new_path);
21
22 public:
23 nbool setPath(const std::string& new_path);
24 const std::string& getPath() const;
25 // stream:
26 const std::string& getName() const override;
27
28 using super::logBypass;
29 nbool logBypass(const nchar* message) override;
30
31 private:
32 std::ofstream _file;
33 std::string _path;
34 };
35}
File output stream for logging to disk files.
Definition: fileLogStream.hpp:14
nbool logBypass(const nchar *message) override
Base class for all logging output streams.
Definition: stream.hpp:12