Interface ILogger
Main interface for logging messages using Homa SDK's logging module.
public interface ILogger
Methods
Log(LogLevel, string, Object, Exception)
Logs a message.
void Log(LogLevel level, string message, Object context, Exception exception)
Parameters
levelLogLevelThe level of the log.
messagestringThe content of the message to log.
contextObjectAn optional context object for the message.
exceptionExceptionAn optional exception associated with the message.
LogError(Exception, Object)
Logs an exception.
void LogError(Exception exception, Object context = null)
Parameters
exceptionExceptionThe exception to log.
contextObjectAn optional context object for the exception message.
LogError(string)
Logs an Error message.
void LogError(string message)
Parameters
messagestringThe content of the message to log
LogError(string, Exception)
Logs an Error message.
void LogError(string message, Exception exception)
Parameters
messagestringThe content of the message to log
exceptionExceptionAn optional exception associated with the message.
LogError(string, Exception, Object)
Logs an Error message.
void LogError(string message, Exception exception, Object context)
Parameters
messagestringThe content of the message to log
exceptionExceptionAn optional exception associated with the message.
contextObjectAn optional context object for the message.
LogError(string, Object)
Logs an Error message.
void LogError(string message, Object context)
Parameters
messagestringThe content of the message to log
contextObjectAn optional context object for the message.
LogInfo(string)
Logs an Info message.
void LogInfo(string message)
Parameters
messagestringThe content of the message to log
LogInfo(string, Object)
Logs a Info message.
void LogInfo(string message, Object context)
Parameters
messagestringThe content of the message to log
contextObjectAn optional context object for the message.
LogTrace(string)
Logs a Trace message.
void LogTrace(string message)
Parameters
messagestringThe content of the message to log
LogTrace(string, Object)
Logs a Trace message.
void LogTrace(string message, Object context)
Parameters
messagestringThe content of the message to log
contextObjectAn optional context object for the message.
LogWarning(string)
Logs a Warning message.
void LogWarning(string message)
Parameters
messagestringThe content of the message to log
LogWarning(string, Object)
Logs a Warning message.
void LogWarning(string message, Object context)
Parameters
messagestringThe content of the message to log
contextObjectAn optional context object for the message.