| 117 | class LOG : public Logger<LOG> { |
| 118 | public: |
| 119 | static void File(const std::string& name, const char* openMode = "w") { |
| 120 | const std::string& file = Name(name); |
| 121 | if (file == "stdout") { |
| 122 | LOG::File() = stdout; |
| 123 | } else if (file == "stderr") { |
| 124 | LOG::File() = stderr; |
| 125 | } else { |
| 126 | LOG::File() = fopen(file.c_str(), openMode); |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | static void Limit(off_t size) { |
| 131 | LOG::Limit() = size; |
nothing calls this directly
no outgoing calls
no test coverage detected