locked
Where do the log write? RRS feed

  • Question

  • User1215150307 posted

    Logging Setting -> Loginng Target Listeners -> Log Name D:\TraceOutput.log

    System.Diagnostics.Trace.Write(DateTime.Now.ToString("dd/MM/yyyy") + " " + Login_TextBox.Text + " Login");
    System.Diagnostics.Trace.Flush();

    when user login, i can not see any file written in d: drive directory. Anything missing?

    Monday, June 20, 2011 9:40 PM

Answers

  • User1215150307 posted

    i find flat file writer in configuration, solved.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, June 23, 2011 9:56 PM

All replies

  • User-1322853079 posted

    Check whether the aspnet user has full permissions to write.., and check eventlog to see whether workerprocess loggging any errors...

    Also check whether tracing is enabled for ur page..

    Eg: <%@ Page Trace="true" %>

    Monday, June 20, 2011 11:25 PM
  • User1215150307 posted

    I mean enterprise library's log

    paga trace="true" will show trace information at the bottom of page. but i do not need to show this information

    i just want to write something into log file

    And it is a development machine in xp, no permission problem

    Monday, June 20, 2011 11:54 PM
  • User1215150307 posted

    i find flat file writer in configuration, solved.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, June 23, 2011 9:56 PM