I'm looking for a way to do one thing I have in mind and I hope anybody here can help me. This is my scenario: I have two libraries, the first performs some actions, the second is a simple logger. In the first library I have a winform which makes some operations to a database, and the user can add or delete data using this form; I would like to use the second library to log all the operations the user makes but without referencing the log library from the first one. What I am looking for is a way to let the main application know what the user makes in the first library and then call the second one to write some data in the log. Another thing to keep in mind is that the form in the first library is opened as a dialog form. Is it possible to do? And if yes, how can I do this? Thanks in advance.
[EDIT]
I realize that maybe my question was not so clear as it was in my mind. In order to keep the two libraries separated (I don't want to call the logging library from the first library in any way), I was thinking about something in the first library that raises an event or something similar or something else in the main application, so if I want i can call the logging methods in the second library from the main application when needed. I hope this is more clear.