| 119 | } |
| 120 | |
| 121 | ForyLog::~ForyLog() { |
| 122 | if (severity_ == ForyLogLevel::FORY_FATAL) { |
| 123 | stream() << "\n*** StackTrace Information ***\n" |
| 124 | << ::fory::get_call_trace(); |
| 125 | stream() << std::endl; |
| 126 | stream().flush(); |
| 127 | std::cerr.flush(); |
| 128 | std::cout.flush(); |
| 129 | std::_Exit(EXIT_FAILURE); |
| 130 | } |
| 131 | stream() << "\n" << std::endl; |
| 132 | } |
| 133 | |
| 134 | bool ForyLog::is_level_enabled(ForyLogLevel log_level) { |
| 135 | return log_level >= fory_severity_threshold; |
nothing calls this directly
no test coverage detected