Hi,
I was just wondering if there is currently a way to include screenshot images when logging to the database or e-mail?
Currently I have a procedure written that takes screenshot of the WinForms application when unhandled exception happens and e-mail the information of the stack trace along with the screenshot.
Screenshot image is embedded into the body of the HTML e-mail.
i.e. "

"
I am using AlternativeView collection for this of MailMessage object.
I want to switch over my logging to NLog.
Can I achieve logging of images using default NLog Library or will I need to create a custom target for this?
Also is it possible to store byte array (images) to the database when logging?
Finally, if I want to encrypt password information for database connection and SMTP Authentication do I have to initialize targets at run-time and not via config file?
Thanks in advance.