• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 663
  • Last Modified:

C# where does log.Error in C# writes the output: log.Error(ex.Message)

where does log.Error in C# writes the output:


using log4net;
using log4net.Config;


log.Error(ex.Message)
0
jgordin
Asked:
jgordin
  • 2
1 Solution
 
sabeeshCommented:
http://www.codeproject.com/useritems/Logger_using_log4net.asp

you can specify the file path read the above link
0
 
jgordinAuthor Commented:
i didnt get the article.
0
 
angus_young_acdcCommented:
That article is how to print out the logs to a location you set using a .config file.  Check your Event logs for the current default log location.
0
 
angus_young_acdcCommented:
To use the config file just follow each of the steps in that article, seems very straight forward.  And the location of the logs is set very easily.  Step 4 shows creating a log location:
<param name="File" value="C:\\Info.txt" />
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now