ChensHelpers
Chen.Helpers.LogHelpers.Collections
Extensions Class
Extensions for Log to allow logging with collections of data with ease.
public static class Extensions
Inheritance System.Object 🡒 Extensions
Methods | |
---|---|
DebugArray<T>(Log, T[], string, string) | Logs an array of values using the Debug format. Use the format parameter to control how the log entry will be displayed. Leave as is for plain logs. The representation parameter will be the token that will be used to display the data that is specified in the format parameter (default is %DATA%). e.g. DebugArray(new string[] { “Chen”, “is”, “AWESOME” }, “-> %X%..!”, “%X%”) will yield: -> Chen..! -> is..! -> AWESOME..! |
DebugArray<T>(Log, T[], Func<T,string>) | Logs an array of values using the Debug format. Use code logic to control the format directly. |
ErrorArray<T>(Log, T[], string, string) | Logs an array of values using the Error format. Use the format parameter to control how the log entry will be displayed. Leave as is for plain logs. The representation parameter will be the token that will be used to display the data that is specified in the format parameter (default is %DATA%). e.g. ErrorArray(new string[] { “Chen”, “is”, “AWESOME” }, “-> %X%..!”, “%X%”) will yield: -> Chen..! -> is..! -> AWESOME..! |
ErrorArray<T>(Log, T[], Func<T,string>) | Logs an array of values using the Error format. Use code logic to control the format directly. |
InfoArray<T>(Log, T[], string, string) | Logs an array of values using the Info format. Use the format parameter to control how the log entry will be displayed. Leave as is for plain logs. The representation parameter will be the token that will be used to display the data that is specified in the format parameter (default is %DATA%). e.g. InfoArray(new string[] { “Chen”, “is”, “AWESOME” }, “-> %X%..!”, “%X%”) will yield: -> Chen..! -> is..! -> AWESOME..! |
InfoArray<T>(Log, T[], Func<T,string>) | Logs an array of values using the Info format. Use code logic to control the format directly. |
MessageArray<T>(Log, T[], string, string) | Logs an array of values using the Message format. Use the format parameter to control how the log entry will be displayed. Leave as is for plain logs. The representation parameter will be the token that will be used to display the data that is specified in the format parameter (default is %DATA%). e.g. MessageArray(new string[] { “Chen”, “is”, “AWESOME” }, “-> %X%..!”, “%X%”) will yield: -> Chen..! -> is..! -> AWESOME..! |
MessageArray<T>(Log, T[], Func<T,string>) | Logs an array of values using the Message format. Use code logic to control the format directly. |
WarningArray<T>(Log, T[], string, string) | Logs an array of values using the Warning format. Use the format parameter to control how the log entry will be displayed. Leave as is for plain logs. The representation parameter will be the token that will be used to display the data that is specified in the format parameter (default is %DATA%). e.g. WarningArray(new string[] { “Chen”, “is”, “AWESOME” }, “-> %X%..!”, “%X%”) will yield: -> Chen..! -> is..! -> AWESOME..! |
WarningArray<T>(Log, T[], Func<T,string>) | Logs an array of values using the Warning format. Use code logic to control the format directly. |