|
ExceptionExtensionsLog Method (Exception, Level, String)
|
This stuff is still in the planning stages. Any questions or Comments are welcome. [This is preliminary documentation and is subject to change.]
Logs the specified level.
Namespace:
Extentions
Assembly:
FurcadiaLib (in FurcadiaLib.dll) Version: 2.19.PreAlpha 59
Syntax public static void Log(
this Exception ex,
Level level = Level.Debug,
[CallerMemberNameAttribute] string memberName = ""
)
<ExtensionAttribute>
Public Shared Sub Log (
ex As Exception,
Optional level As Level = Level.Debug,
<CallerMemberNameAttribute> Optional memberName As String = ""
)
Dim ex As Exception
Dim level As Level
Dim memberName As String
ex.Log(level, memberName)
public:
[ExtensionAttribute]
static void Log(
Exception^ ex,
Level level = Level::Debug,
[CallerMemberNameAttribute] String^ memberName = L""
)
[<ExtensionAttribute>]
static member Log :
ex : Exception *
?level : Level *
[<CallerMemberNameAttribute>] ?memberName : string
(* Defaults:
let _level = defaultArg level Level.Debug
let _memberName = defaultArg memberName ""
*)
-> unit
Parameters
- ex
- Type: SystemException
The ex. - level (Optional)
- Type: Level
The level. - memberName (Optional)
- Type: SystemString
Name of the member.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Exception. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also