Functions | |
Errata & | vlogf (Errata &err, Errata::Id id, Errata::Code code, char const *format, va_list &rest) |
Errata | vlogf_errno (Errata &errata, Errata::Id id, Errata::Code code, char const *format, va_list &rest) |
Errata & | log (Errata &err, Errata::Id id, Errata::Code code, char const *text) |
Debugging information. | |
Errata & | log (Errata &err, Errata::Code code,char const *text) |
Report literal string to an Errata. | |
Errata & | log (RvBase &rv, Errata::Code code,char const *text) |
Report literal string to a return value. | |
Errata | log (Errata::Code code,char const *text) |
Return an Errata populated with a literal string. | |
Errata & | logf (Errata &err, Errata::Id id,Errata::Code code,char const *format,...) |
printf style log to Errata. | |
Errata | logf (Errata::Code code,char const *format,...) |
Return an Errata populated with a printf style formatted string. | |
Errata & | logf (Errata &err, Errata::Code code,char const *format,...) |
printf style log to Errata. | |
Errata & | logf (RvBase &rv,Errata::Code code,char const *format,...) |
Return an Errata in a return value populated with a printf style formatted string. | |
Errata | log_errno (Errata::Code code,char const *text) |
Return an Errata based on errno . | |
Errata | logf_errno (Errata::Code code,char const *format,...) |
Return an Errata based on errno . | |
Errata | logf_errno (Errata &errata,Errata::Code code,char const *format,...) |
Add a message to an errata based on errno . | |
Errata | logf_errno (RvBase &rv,Errata::Code code,char const *format,...) |
Add a message to a return value based on errno . | |
Variables | |
Message severity levels. | |
Errata::Code | FATAL = 3 |
Fatal, cannot continue. | |
Errata::Code | WARN = 2 |
Significant, should be fixed. | |
Errata::Code | INFO = 1 |
Interesting, not necessarily a problem. | |
Errata::Code | DEBUG = 0 |
Interesting, not necessarily a problem. |
Errata & ts::msg::log | ( | Errata & | err, | |
Errata::Id | id, | |||
Errata::Code | code, | |||
char const * | text | |||
) |
Debugging information.
Logging / reporting support.
We build on top of Errata
but we want to be able to prevent message generation / allocation for messages with severity levels less than a run time controllable value. Report literal string to an Errata.
err | Target errata. | |
id | Message ID. | |
code | Severity level. | |
text | Message text. |
Referenced by ts::config::detail::ValueTable::make(), and ts::config::Path::Parser::parse().
Errata & ts::msg::log | ( | Errata & | err, | |
Errata::Code | code, | |||
char const * | text | |||
) |
Report literal string to an Errata.
Use message ID 0.
err | Target errata. | |
code | Severity level. | |
text | Message text. |
Errata ts::msg::log | ( | Errata::Code | code, | |
char const * | text | |||
) |
Return an Errata populated with a literal string.
Use message ID 0.
code | Severity level. | |
text | Message text. |
Errata & ts::msg::log | ( | RvBase & | rv, | |
Errata::Code | code, | |||
char const * | text | |||
) |
Report literal string to a return value.
Use message ID 0.
Errata
in rv. rv | Return value. | |
code | Severity level. | |
text | Message text. |
Errata ts::msg::log_errno | ( | Errata::Code | code, | |
char const * | text | |||
) |
Errata & ts::msg::logf | ( | Errata & | err, | |
Errata::Code | code, | |||
char const * | format, | |||
... | ||||
) |
printf style log to Errata.
The message id is set to zero.
err | Target errata. | |
code | Severity level. | |
format | Format string. |
Errata & ts::msg::logf | ( | RvBase & | rv, | |
Errata::Code | code, | |||
char const * | format, | |||
... | ||||
) |
Errata & ts::msg::logf | ( | Errata & | err, | |
Errata::Id | id, | |||
Errata::Code | code, | |||
char const * | format, | |||
... | ||||
) |
printf style log to Errata.
err | Target errata. | |
id | Message ID. | |
code | Severity level. | |
format | Format string. |
Referenced by ts::config::Builder::dispatch(), ts::config::Builder::literalValue(), ts::config::detail::ValueTable::make(), ts::config::Path::Parser::parse(), and ts::config::Builder::syntaxError().
Errata ts::msg::logf | ( | Errata::Code | code, | |
char const * | format, | |||
... | ||||
) |
Return an Errata populated with a printf style formatted string.
Use message ID 0.
code | Severity level. | |
format | Message text. |
Errata ts::msg::logf_errno | ( | RvBase & | rv, | |
Errata::Code | code, | |||
char const * | format, | |||
... | ||||
) |
Add a message to a return value based on errno
.
errno
and the corresponding system error string are appended to the results from the format and following arguments.
rv | Return value. | |
code | Severity code. | |
format | Format string. |
Errata ts::msg::logf_errno | ( | Errata & | errata, | |
Errata::Code | code, | |||
char const * | format, | |||
... | ||||
) |
Add a message to an errata based on errno
.
errno
and the corresponding system error string are appended to the results from the format and following arguments.
errata | Errata to use. | |
code | Severity code. | |
format | Format string. |
Errata ts::msg::logf_errno | ( | Errata::Code | code, | |
char const * | format, | |||
... | ||||
) |
Return an Errata
based on errno
.
errno
and the corresponding system error string are appended to the results from the format and following arguments.
Errata
. code | Severity code. | |
format | Format string. |
Referenced by ts::config::Configuration::loadFromPath().
Errata& ts::msg::vlogf | ( | Errata & | err, | |
Errata::Id | id, | |||
Errata::Code | code, | |||
char const * | format, | |||
va_list & | rest | |||
) |
Definition at line 76 of file TsErrataUtil.cc.
References ts::Errata::push().
Errata ts::msg::vlogf_errno | ( | Errata & | errata, | |
Errata::Id | id, | |||
Errata::Code | code, | |||
char const * | format, | |||
va_list & | rest | |||
) |
Definition at line 135 of file TsErrataUtil.cc.
References ATS_UNUSED_RETURN, and ts::Errata::push().
Interesting, not necessarily a problem.
Debugging information.
Definition at line 39 of file TsErrataUtil.cc.
Referenced by MutexLock::MutexLock(), MutexTryLock::MutexTryLock(), and MutexLock::set_and_take().
Fatal, cannot continue.
Definition at line 36 of file TsErrataUtil.cc.
Interesting, not necessarily a problem.
Definition at line 38 of file TsErrataUtil.cc.
Significant, should be fixed.
Significant, function degraded.
Definition at line 37 of file TsErrataUtil.cc.
Referenced by ts::config::Builder::dispatch(), ts::config::Builder::literalValue(), ts::config::Configuration::loadFromPath(), ts::config::detail::ValueTable::make(), ts::config::Path::Parser::parse(), and ts::config::Builder::syntaxError().