| 202 | } |
| 203 | |
| 204 | bool TLog::OpenLog(const char* path, ELogPriority lp) { |
| 205 | if (path) { |
| 206 | ResetBackend(CreateLogBackend(path, lp)); |
| 207 | } else { |
| 208 | ResetBackend(MakeHolder<TStreamLogBackend>(&Cerr)); |
| 209 | } |
| 210 | |
| 211 | return true; |
| 212 | } |
| 213 | |
| 214 | void TLog::ResetBackend(THolder<TLogBackend> backend) noexcept { |
| 215 | Impl_->ResetBackend(std::move(backend)); |
nothing calls this directly
no test coverage detected