How to record in WPF?

I am writing a WPF application using the MVVM template and using Prism in selected places for free communication, and I would like to have registration messages displayed in a window and written to a file. A subset of messages going in each direction may not be the same.

I think I should post the message through EventAggregator(MS-Prism observer template implementation) and subscribe to two objects: one that updates LogWindowViewModeland one that registers using the Enterprise Library registrar. Is this a good idea or am I duplicating what has already been implemented?

+3
source share
3 answers

, , .

, CustomTraceListener ILogFilter . EventAggregator.

, , . , ? , , ? .

, EventAggregator.

+2

, . , .

0

I used Common.Logging as a data collector, filter and distributor for something comparable and wrote a custom appender for my own processing and ui-output.

0
source

Source: https://habr.com/ru/post/1796299/


All Articles