Class ILog_Actions
Extension methods for Actions (functions which don't return a value).
[InternalApi_DoNotUse_MayChangeWithoutNotice("Still WIP")]
public static class ILog_Actions
- Inheritance
-
objectILog_Actions
Methods
Do(ILog, Action, bool, bool, string, string, string, int)
Run code / action and just log that it happened.
[InternalApi_DoNotUse_MayChangeWithoutNotice("Still WIP but probably final")]
public static void Do(this ILog log, Action action, bool timer = false, bool enabled = true, string message = null, string cPath = null, string cName = null, int cLine = 0)
Parameters
log
ILogaction
Actiontimer
boolenabled
boolmessage
stringcPath
stringCode file path, auto-added by compiler
cName
stringCode method name, auto-added by compiler
cLine
intCode line number, auto-added by compiler
Do(ILog, Action<ILogCall>, bool, bool, string, string, string, int)
Run code / action which expects the inner logger as parameter, for further logging.
[InternalApi_DoNotUse_MayChangeWithoutNotice("Still WIP but probably final")]
public static void Do(this ILog log, Action<ILogCall> action, bool timer = false, bool enabled = true, string message = null, string cPath = null, string cName = null, int cLine = 0)
Parameters
log
ILogaction
Action<ILogCall>timer
boolenabled
boolmessage
stringcPath
stringCode file path, auto-added by compiler
cName
stringCode method name, auto-added by compiler
cLine
intCode line number, auto-added by compiler
Do(ILog, Func<string>, bool, bool, string, string, string, int)
Do something and the inner call can return a message which will be logged. The result of the inner call will just be logged. Ideal for calls which have a lot of logic and want to have a final message as to what case applied
[InternalApi_DoNotUse_MayChangeWithoutNotice("Still WIP but probably final")]
public static void Do(this ILog log, Func<string> action, bool timer = false, bool enabled = true, string message = null, string cPath = null, string cName = null, int cLine = 0)
Parameters
log
ILogaction
Func<string>The method called, whose return value will be logged but not passed on
timer
boolenabled
boolmessage
stringcPath
stringCode file path, auto-added by compiler
cName
stringCode method name, auto-added by compiler
cLine
intCode line number, auto-added by compiler
Do(ILog, Func<ILogCall, string>, bool, bool, string, string, string, int)
[InternalApi_DoNotUse_MayChangeWithoutNotice("Still WIP but probably final")]
public static void Do(this ILog log, Func<ILogCall, string> action, bool timer = false, bool enabled = true, string message = null, string cPath = null, string cName = null, int cLine = 0)
Parameters
log
ILogaction
Func<ILogCall, string>timer
boolenabled
boolmessage
stringcPath
stringcName
stringcLine
int
Do(ILog, string, Action, bool, bool, string, string, string, int)
Run code / action and just log that it happened. This overload also accepts parameters to log and optional message.
[InternalApi_DoNotUse_MayChangeWithoutNotice("Still WIP but probably final")]
public static void Do(this ILog log, string parameters, Action action, bool timer = false, bool enabled = true, string message = null, string cPath = null, string cName = null, int cLine = 0)
Parameters
log
ILogparameters
stringaction
Actiontimer
boolenabled
boolmessage
stringcPath
stringCode file path, auto-added by compiler
cName
stringCode method name, auto-added by compiler
cLine
intCode line number, auto-added by compiler
Do(ILog, string, Action<ILogCall>, bool, bool, string, string, string, int)
[InternalApi_DoNotUse_MayChangeWithoutNotice("Still WIP but probably final")]
public static void Do(this ILog log, string parameters, Action<ILogCall> action, bool timer = false, bool enabled = true, string message = null, string cPath = null, string cName = null, int cLine = 0)
Parameters
log
ILogparameters
stringaction
Action<ILogCall>timer
boolenabled
boolmessage
stringcPath
stringcName
stringcLine
int
Do(ILog, string, Func<string>, bool, bool, string, string, string, int)
Do something and the inner call can return a message which will be logged. The result of the inner call will just be logged. Ideal for calls which have a lot of logic and want to have a final message as to what case applied
[InternalApi_DoNotUse_MayChangeWithoutNotice("Still WIP but probably final")]
public static void Do(this ILog log, string parameters, Func<string> action, bool timer = false, bool enabled = true, string message = null, string cPath = null, string cName = null, int cLine = 0)
Parameters
log
ILogparameters
stringaction
Func<string>The method called, whose return value will be logged but not passed on
timer
boolenabled
boolmessage
stringcPath
stringCode file path, auto-added by compiler
cName
stringCode method name, auto-added by compiler
cLine
intCode line number, auto-added by compiler
Do(ILog, string, Func<ILogCall, string>, bool, bool, string, string, string, int)
[InternalApi_DoNotUse_MayChangeWithoutNotice("Still WIP but probably final")]
public static void Do(this ILog log, string parameters, Func<ILogCall, string> action, bool timer = false, bool enabled = true, string message = null, string cPath = null, string cName = null, int cLine = 0)