Search Result

Collapse
3 results in 0.0027 seconds.
Keywords
Members
Tags
logging
  •  

  • Choosing log file destination in logging configuration file

    Don't know if it's out there already but I've found a solution to this:
    http://bytes.com/topic/python/answer...iguration-file

    Code:
    # logging.conf
    [loggers]
    keys=root
    
    [handlers]
    keys=TimedRotatingFileHandler
    
    [formatters]
    keys=simpleFormatter
    
    [logger_root]
    level=DEBUG
    handlers=TimedRotatingFileHandler
    ...
    See more | Go to post

  • How can I write real-time log message to a RichTextBox using log4net?

    My gut feeling tells me I may have to implement a custom appender to do this. But I'm concerned about the threading issue, since I want the text box to display some message in a real-time manner as the system executes a series of actions.

    For example, when user clicks some button on my Winform application, the click event handler calls 2 methods: Act1() and Act2(). So I want when Act1() finishes, the text box on the form displays some...
    See more | Go to post

  • Gurinderc
    started a topic Modifying cout to display custom text at start
    in C

    Modifying cout to display custom text at start

    Hello,

    I'm working on, to write the debug statements to logfile or console depends on working environment.

    What I have did:

    Code:
    	
    	streambuf *psbuf;
    	ofstream logFile;
    	logFile.open(LOGFILE);
    
    	psbuf = logFile.rdbuf();
    	cout.rdbuf(psbuf);
    this cause cout to redirect the output to log and it's working fine.

    The situation is, I like...
    See more | Go to post
Working...