Add LOG_INF_NOFILE that doesn't display the source file location

Useful (like LOG_TRC_NOFILE) in cases where the source file location
of the LOG_INF call is uninteresting. (Like if the message to be
logged has originated somewhere else.)

Change-Id: Id6d8c137be073a958943f01b3d7b98143fcd7dfd
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98735
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
This commit is contained in:
Tor Lillqvist
2020-07-14 16:43:07 +03:00
parent 52eeae509b
commit 137981f360

View File

@ -339,6 +339,16 @@ namespace Log
} \
} while (false)
#define LOG_INF_NOFILE(X) \
do \
{ \
auto& log_ = Log::logger(); \
if (log_.information() && !Log::isShutdownCalled()) \
{ \
LOG_BODY_(log_, INFORMATION, "INF", X, false); \
} \
} while (false)
#define LOG_WRN(X) \
do \
{ \