c# Programming Glossary: logentry
How to effectively log asynchronously? http://stackoverflow.com/questions/1181561/how-to-effectively-log-asynchronously thread. The way I am doing this now is that I create a LogEntry object and then I call BeginInvoke on a delegate that calls.. on a delegate that calls Logger.Write. new Action LogEntry Logger.Write .BeginInvoke le null null What I'd really like.. message to a queue and then have a single thread pulling LogEntry instances off the queue and performing the log operation. The..
Implementing a log viewer with WPF http://stackoverflow.com/questions/16743804/implementing-a-log-viewer-with-wpf items Fully MVVM friendly. DataTemplate s for each kind of LogEntry type. These give you the ability to customize as much as you.. basic and nested but you get the idea. You may subclass LogEntry as much as you need. You may even support rich text or images... Setter Style DataTemplate DataType x Type local LogEntry Grid IsSharedSizeScope True Grid.ColumnDefinitions ColumnDefinition..
logger wrapper best practice http://stackoverflow.com/questions/5646820/logger-wrapper-best-practice own simple abstraction public interface ILogger void Log LogEntry entry This abstraction can be extended with some simple extension.. Log this ILogger logger string message logger.Log new LogEntry LoggingEventType.Information message null null public static.. this ILogger logger Exception exception logger.Log new LogEntry LoggingEventType.Error exception.Message null exception More..
Associating enums with strings in C# http://stackoverflow.com/questions/630803/associating-enums-with-strings-in-c-sharp Write string message LogCategory logCategory var log new LogEntry Message message Logger.Write log logCategory.Value Usage Logger.Write..
|