Log.Error method (1 of 3)
Write Error Logs.
public void Error(Exception exception)
| parameter | description |
|---|---|
| exception | Exception object. |
See Also
- class Log
- namespace Autodesk.DataExchange.Extensions.Logging.File
Log.Error method (2 of 3)
Write Error logs and Calling Function Name.
public void Error(string message, [CallerMemberName] string caller = null)
| parameter | description |
|---|---|
| message | Message to log. |
| caller | Caller name. If not passed then logs the last calling function. |
| callerPath | Caller file path. If not passed then logs the last calling function's file path. |
See Also
- class Log
- namespace Autodesk.DataExchange.Extensions.Logging.File
Log.Error method (3 of 3)
Write Error Logs with contextual message and exception.
public void Error(string message, Exception exception, [CallerMemberName] string caller = null)
| parameter | description |
|---|---|
| message | Message to log. |
| exception | Exception object. |
| caller | Caller name. If not passed then logs the last calling function. |
See Also
- class Log
- namespace Autodesk.DataExchange.Extensions.Logging.File