Message Severity-1 | NONE | Do not use, system use only | 0 | CRIT | Something has gone wrong and immediate attention is required | 1 | ERR | Something has gone wrong and should be addressed, but does not require immediate attention | 2 | WARN | Something unexpected happened, but is not necessarily a bug | 3 | INFO | Progress output or general information. INFO logging and a properly configured LogToConsole listener may be used in place of Console.WriteLine() | 4 | DEBUG | Debug information, info dumps, etc. | 5 | DEBUG2 | Debug information, info dumps, etc. | 6 | DEBUG3 | Debug information, info dumps, etc. | 10 | REPORTING | Reporting and performance logging |
Format Tokens{attr1} - {attr8} | Attributes 1 through 8 | {errorclass} | Error Class | {errorsubclass} | Error Subclass | {app} | The Application Name | {assemblyversion} | The Assembly Version | {machinename} | Machine Name | {processid} | Process ID | {threadid} | Thread ID | {msgid} | Message ID | {severity} | Severity | {source} | Source | {tag} | Tag (from Config) | {eventtime} | Event Date | {day} | Event Date - Day | {month} | Event Date - Month | {year} | Event Date - Year | {hour} | Event Date - Hour | {minute} | Event Date - Minute | {second} | Event Date - Second | {message} | Message Body |
Severity FilterEnumValue | Integer representing any valid message severity ("2" = WARN) | EnumValueRange | Inclusive range of message severities ("0-2" = CRIT, ERR, & WARN) | EnumName | String representing a severity enum name ("Crit" = CRIT) |
Comma separated list of expressions (EnumValues, EnumValueRanges, and/or EnumNames) representing the message severities to be processed by a log listener ("1-3, Debug, 10" = ERR, WARN, INFO, DEBUG, & REPORTING)
MCLog.LogToConsoleSeverityFilter | CRIT, ERR | Filter describing severities to log | Format | {message} | Format to use for output {Supports format tokens} |
MCLog.LogToDB2SeverityFilter | CRIT, ERR | Filter describing severities to log | ConnectionString | | Name of connection string to use | MaxAge | MaxValue | TimeSpan indicating how long to retain logging | MaxDays | | Number of days to retain logging (overridden by MaxAge) | CleanupProbability Denominator | 1000 | Probability of triggering cleanup (Probability = 1/Denominator) |
| | MCLog.LogToEmailSeverityFilter | CRIT, ERR | Filter describing which severities to log | MailServer | | SMTP server address | Port | 25 | SMTP server port | From | | Email message from address | To | | Comma delimited list of email message recipient addresses | Subject | | Email message subject {Supports format tokens} | Body | {message} ... | Email message body {Supports format tokens} |
MCLog.LogToEventLogSeverityFilter | CRIT, ERR | Filter describing severities to log | EventLogSource | Application Error | Source string to use in event log message | Format | {message} ... | Format to use for output {Supports format tokens} |
MCLog.LogToFileSeverityFilter | CRIT, ERR | Filter describing severities to log | BasePath | | Absolute log file path (combined with FilePath) | FilePath | | Relative log file path and file name {Supports format tokens} | Format | Event... | Format to use for output {Supports format tokens} | MaxRetries | 3 | Number of retries when writing to file fails | RetryDelay | 250ms | TimeSpan indicating pause between retries when writing to file fails | Delimiter | -----... | Delimiter separating messages in file | MaxAge | MaxValue | TimeSpan indicating how long to retain logging | MaxDays | | Number of days to retain logging (Overridden by MaxAge) | CleanupProbability Denominator | 1000 | Probability of triggering cleanup (Probability = 1/Denominator) |
MCLog.LogToFunctionSeverityFilter | CRIT, ERR | Filter describing severities to log | Format | {message} | Format to use for output {Supports format tokens} |
MCLog.LogToStringSeverityFilter | CRIT, ERR | Filter describing severities to log | Format | {message}. | Format to use for output {Supports format tokens} |
MCLog.UserMessagesSeverityFilter | CRIT, ERR | Filter describing severities to log | Format | {message} | Format to use for output {Supports format tokens} | MaxQueueSize | 100 | Max number of user messages to queue for retrieval |
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets