Hi!

I've just had a 10-minutes VB.NET course and the result is included:

You need to:

1. Add NLog.dll reference to your project.
2. Add App.config file to your project as it tells NLog the logging rules. If you don't do it, NLog will output nothing. Alternatively use other configuration methods as described on the website.

Module1.vb shows how to write messages in VB.NET.

Jarek

----- Original Message ----- From: ahmad rahil
To: [EMAIL PROTECTED]
Sent: Tuesday, June 21, 2005 11:07 AM
Subject: HELP about NLOG



Hi sir,
I down load your code from source forge (the NLOG a net logging library). I get 2 zip files:
nlog-0.9-bin
nlog-0.9-src
I need to use the NLOG within my application in VB.NET to write information about my application in a log file (some where in the c drive). I read the documentation on how to use it but i need to know what i should put in my application and how to merge NLOG to my application to start use it ??
your help is appreciate









Rahil Ahmad
Tél : 011-961-3-22-80-47
Email: [EMAIL PROTECTED]

Attachment: App.config
Description: application/xml

Module Module1
   Dim logger As NLog.Logger = LogManager.GetLogger("Logger1")
   Sub Main()
       logger.Debug("Hello {0}", "world!")
   End Sub
End Module

Reply via email to