Yes you can. Have you used the email tracelistener before with a win app or web app? If so, the process is the same regardless of what type of application you're planning to use it on. Configure your Logging Application Block
1. Add an Email TraceListener, set the required properties mentioned in the documentation.
2. Add a category then add a tracelistener reference pointing to your email tracelistener.
3. You can then log using this piece of code:
LogEntry log = new LogEntry();
log.Categories.Add("General"); //General is the name of the category to which your tracelistener belongs to
//set the log properties
Global Technology & Solutions