39class GTestLogger :
public Logger
46 log(
const Loc &loc, std::string
s)
override
53class GTestExitLogger :
public Logger
60 log(
const Loc &loc, std::string
s)
override
63 std::cerr << loc.file <<
":" << loc.line <<
": " <<
s;
66 void exit()
override {
throw GTestException(); }
79 static GTestExitLogger* panic_logger =
new GTestExitLogger(
"panic: ");
85 static GTestExitLogger* fatal_logger =
new GTestExitLogger(
"fatal: ");
91 static GTestLogger* warn_logger =
new GTestLogger(
"warn: ");
97 static GTestLogger* info_logger =
new GTestLogger(
"info: ");
103 static GTestLogger* hack_logger =
new GTestLogger(
"hack: ");
static Logger & getWarn()
Logger(const char *prefix)
static Logger & getInfo()
static Logger & getHack()
static Logger & getPanic()
Get a Logger for the specified type of message.
static Logger & getFatal()
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
thread_local GTestLogOutput gtestLogOutput