LogMessageEnvelope Struct Reference

Log message severity and source location info. More...

#include <kaldi-error.h>

Collaboration diagram for LogMessageEnvelope:

Public Types

enum  Severity { kAssertFailed = -3, kError = -2, kWarning = -1, kInfo = 0 }
 Message severity. More...
 

Public Attributes

int severity
 A Severity value, or positive verbosity level. More...
 
const char * func
 Name of the function invoking the logging. More...
 
const char * file
 Source file name with up to 1 leading directory. More...
 
int32 line
 

Detailed Description

Log message severity and source location info.

Definition at line 69 of file kaldi-error.h.

Member Enumeration Documentation

◆ Severity

enum Severity

Message severity.

In addition to these levels, positive values (1 to 6) specify verbose logging level. Verbose messages are produced only when SetVerboseLevel() has been called to set logging level to at least the corresponding value.

Enumerator
kAssertFailed 

Assertion failure. abort() will be called.

kError 

Fatal error. KaldiFatalError will be thrown.

kWarning 

Indicates a recoverable but abnormal condition.

kInfo 

Informational message.

Definition at line 74 of file kaldi-error.h.

74  {
75  kAssertFailed = -3,
76  kError = -2,
77  kWarning = -1,
78  kInfo = 0,
79  };
Informational message.
Definition: kaldi-error.h:78
Fatal error. KaldiFatalError will be thrown.
Definition: kaldi-error.h:76
Assertion failure. abort() will be called.
Definition: kaldi-error.h:75
Indicates a recoverable but abnormal condition.
Definition: kaldi-error.h:77

Member Data Documentation

◆ file

const char* file

Source file name with up to 1 leading directory.

Definition at line 82 of file kaldi-error.h.

◆ func

const char* func

Name of the function invoking the logging.

Definition at line 81 of file kaldi-error.h.

◆ line

int32 line

Definition at line 83 of file kaldi-error.h.

◆ severity

int severity

A Severity value, or positive verbosity level.

Definition at line 80 of file kaldi-error.h.


The documentation for this struct was generated from the following file: