The logger formats log messages in a consistent way.
public class Logger
Methods
| Name | Description | Return Type |
|---|---|---|
| Debug(CdmCorpusContext, string, string, string, string) ctx: The corpus context. className: Name of the class from which the log was issued. method: Name of the method from which the log was issued. corpusPath: Corpus path of the CDM object related to the log being issued. May be null if the path is not available. message: The message to the log. |
Log to DEBUG level. | void |
| Info(CdmCorpusContext, string, string, string, string) ctx: The corpus context. className: Name of the class from which the log was issued. corpusPath: Corpus path of the CDM object related to the log being issued. May be null if the path is not available. method: Name of the method from which the log was issued. message: The message to the log. |
Log to INFO level. | void |
| Warning(string, CdmCorpusContext, string, string, string, CdmLogCode, params string[]) ctx: The corpus context. className: Name of the class from which the log was issued. method: Name of the method from which the log was issued. corpusPath: Corpus path of the CDM object related to the log being issued. May be null if the path is not available. code: The code, denotes the code enum for a message. args: The args, denotes the arguments inserted into the messages. |
Log to WARNING level. | void |
| Error(string, CdmCorpusContext, string, string, string, CdmLogCode, params string[]) ctx: The corpus context. className: Name of the class from which the log was issued. method: Name of the method from which the log was issued. corpusPath: Corpus path of the CDM object related to the log being issued. May be null if the path is not available. code: The code, denotes the code enum for a message. args: The args, denotes the arguments inserted into the messages. |
Log to ERROR level. | void |