로딩중...
검색중...
일치하는것 없음
fileLogStream.hpp
이 파일의 문서화 페이지로 가기
1
2#pragma once
3
4#include <fstream>
5
7
8namespace by {
9
15 class _nout fileLogStream: public stream {
16 BY_ME(fileLogStream, stream)
17
18 public:
19 // fileLogStream:
21 explicit fileLogStream(const std::string& new_path);
22
23 public:
29 nbool setPath(const std::string& new_path);
30 const std::string& getPath() const;
31 // stream:
32 const std::string& getName() const override;
33
34 using super::logBypass;
35 nbool logBypass(const nchar* message) override;
36
37 private:
38 std::ofstream _file;
39 std::string _path;
40 };
41}
File output stream for logging to disk files
Definition fileLogStream.hpp:15
nbool setPath(const std::string &new_path)
Sets the path for the log file and attempts to open it.
nbool logBypass(const nchar *message) override
Log message directly without formatting
Base class for all logging output streams
Definition stream.hpp:13
Rich logging support with polymorphic type conversion
Definition richLog.hpp:34