[slf4j-dev] [Bug 211] New: RFE: Flush the appenders.

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Thu Dec 23 17:42:03 CET 2010


http://bugzilla.slf4j.org/show_bug.cgi?id=211

           Summary: RFE: Flush the appenders.
           Product: SLF4J
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: Core API
        AssignedTo: slf4j-dev at qos.ch
        ReportedBy: zizka at seznam.cz


Would be nice to have a way to flush async appenders,
to prevent reference the logging backends explicitly.

A use case: 

Running a server in a shell in background, like,

  $ startMyServer.sh &

It's ok when the server mixes it's output with the other processes in
foreground, but after server is started, with flush(), one could sync the log
at a single point.

For log4j it would call -

  logger.getAllAppenders()
  while( allAppenders.hasMoreElements() ){
    fileAppender.setImmediateFlush(true);
    logger.info("Flush");
    fileAppender.setImmediateFlush(false);
  }

Other back ends - ???


-- 
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the slf4j-dev mailing list