You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Creates a logger based on `Reflection.MethodBase.GetCurrentMethod` call. This is only useful for calls within functions. This does not protect against inlined functions.
1190
-
///
1191
-
/// **Output Type**
1192
-
/// * `ILog`
1193
-
///
1194
-
/// **Exceptions**
1195
-
///
1196
-
let inlinegetLoggerByFunc()=
1197
-
letmi= Reflection.MethodBase.GetCurrentMethod()
1198
-
1199
-
sprintf "%s.%s" mi.DeclaringType.FullName mi.Name
1200
-
|> getLoggerByName
1201
-
1202
-
1203
1188
/// **Description**
1204
1189
///
1205
1190
/// Creates a logger. It's name is based on the current StackFrame. This will attempt to retrieve any loggers set with `setLoggerProvider`. It will fallback to a known list of providers.
/// Creates a logger based on `Reflection.MethodBase.GetCurrentMethod().FullName` and `CallerMemberName`. This is only useful for calls within functions. Results may vary on lambda and inlined functions.
1204
+
/// </summary>
1205
+
/// <param name="memberName">Do not pass anything to this parameter to get `CallerMemberName` to work.</param>
1206
+
/// <returns></returns>
1207
+
static member inlinegetLoggerByFunc([<System.Runtime.CompilerServices.CallerMemberName>]?memberName:string)=
0 commit comments