how can we handle exception ,make entry to log file using Microsoft enterprise library in Asp.net Web Application.

I am using following code for log entry it runs,give no error now i am not able to fine this log entry I checked my system log files????

LogEntry entry = new LogEntry();
            entry.EventId = 1;
            entry.Priority = 1;
            entry.Message = "This is a test message";
            entry.Categories.Clear();
            //Note that the default category is General
            entry.Categories.Add("General");
            Logger.Write(entry);
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.