Functions

ts::msg Namespace Reference

Functions

Erratavlogf (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)

Erratalog (Errata &err, Errata::Id id, Errata::Code code, char const *text)
 Debugging information.
Erratalog (Errata &err, Errata::Code code,char const *text)
 Report literal string to an Errata.
Erratalog (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.
Erratalogf (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.
Erratalogf (Errata &err, Errata::Code code,char const *format,...)
 printf style log to Errata.
Erratalogf (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.

Function Documentation

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.

Returns:
err.
Parameters:
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.

Returns:
err.
Parameters:
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.

Returns:
err.
Parameters:
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.

Returns:
The Errata in rv.
Parameters:
rv Return value.
code Severity level.
text Message text.
Errata ts::msg::log_errno ( Errata::Code  code,
char const *  text 
)

Return an Errata based on errno.

The literal string is combined with the system text for the current value of errno. This is modeled on perror. Message ID 0 is used.

Returns:
The new Errata.
Parameters:
code Severity level.
text Message 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.

Returns:
err.
Parameters:
err Target errata.
code Severity level.
format Format string.
Errata & ts::msg::logf ( RvBase &  rv,
Errata::Code  code,
char const *  format,
  ... 
)

Return an Errata in a return value populated with a printf style formatted string.

Use message ID 0.

Returns:
The Errata in rv.
Parameters:
rv Rv value.
code Severity level.
format Message text.
Errata & ts::msg::logf ( Errata &  err,
Errata::Id  id,
Errata::Code  code,
char const *  format,
  ... 
)

printf style log to Errata.

Returns:
err.
Parameters:
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.

Returns:
err.
Parameters:
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.

Returns:
The errata in rv.
Parameters:
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.

Returns:
errata.
Parameters:
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.

Returns:
The new Errata.
Parameters:
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().


Variable Documentation

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.