Skip to main content

ILogWithExceptionExtensions

Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public static class ILogWithExceptionExtensions

Methods

Debug(ILog, Exception, String, Object[])

Logs a Debug format message and exception.

View Source
Declaration
public static void Debug(this ILog logger, Exception exception, string format, params object[] args)
Parameters
TypeNameDescription
ServiceStack.Logging.ILogloggerThe logger

| | System.Exception | exception | Exception related to the event.

| | System.String | format | The format.

| | System.Object[] | args | The args.

|

Info(ILog, Exception, String, Object[])

Logs an Info format message and exception.

View Source
Declaration
public static void Info(this ILog logger, Exception exception, string format, params object[] args)
Parameters
TypeNameDescription
ServiceStack.Logging.ILogloggerThe logger

| | System.Exception | exception | Exception related to the event.

| | System.String | format | The format.

| | System.Object[] | args | The args.

|

Warn(ILog, Exception, String, Object[])

Logs a Warn format message and exception.

View Source
Declaration
public static void Warn(this ILog logger, Exception exception, string format, params object[] args)
Parameters
TypeNameDescription
ServiceStack.Logging.ILogloggerThe logger

| | System.Exception | exception | Exception related to the event.

| | System.String | format | The format.

| | System.Object[] | args | The args.

|

Error(ILog, Exception, String, Object[])

Logs an Error format message and exception.

View Source
Declaration
public static void Error(this ILog logger, Exception exception, string format, params object[] args)
Parameters
TypeNameDescription
ServiceStack.Logging.ILogloggerThe logger

| | System.Exception | exception | Exception related to the event.

| | System.String | format | The format.

| | System.Object[] | args | The args.

|

Fatal(ILog, Exception, String, Object[])

Logs a Fatal format message and exception.

View Source
Declaration
public static void Fatal(this ILog logger, Exception exception, string format, params object[] args)
Parameters
TypeNameDescription
ServiceStack.Logging.ILogloggerThe logger

| | System.Exception | exception | Exception related to the event.

| | System.String | format | The format.

| | System.Object[] | args | The args.

|