Codota Logo
FileHandler.subPublish
Code IndexAdd Codota to your IDE (free)

How to use
subPublish
method
in
org.jboss.logging.jdk.handlers.FileHandler

Best Java code snippets using org.jboss.logging.jdk.handlers.FileHandler.subPublish (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: jboss/jboss-common-logging-jdk

  /**
  * This method differentiates DailyRollingFileAppender from its
  * super class.
  * <p/>
  * <p>Before actually logging, this method will check whether it is
  * time to do a rollover. If it is, it will schedule the next
  * rollover time and then rollover.
  */
  protected void subPublish(LogRecord event)
  {
   long n = System.currentTimeMillis();
   if (n >= nextCheck)
   {
     now.setTime(n);
     nextCheck = rc.getNextCheckMillis(now);
     try
     {
      rollOver();
     }
     catch (IOException ioe)
     {
      reportError("rollOver() failed.", ioe, ErrorManager.OPEN_FAILURE);
     }
   }
   super.subPublish(event);
  }
}
origin: jboss/jboss-logging-jdk

  /**
  * This method differentiates DailyRollingFileAppender from its
  * super class.
  * <p/>
  * <p>Before actually logging, this method will check whether it is
  * time to do a rollover. If it is, it will schedule the next
  * rollover time and then rollover.
  */
  protected void subPublish(LogRecord event)
  {
   long n = System.currentTimeMillis();
   if (n >= nextCheck)
   {
     now.setTime(n);
     nextCheck = rc.getNextCheckMillis(now);
     try
     {
      rollOver();
     }
     catch (IOException ioe)
     {
      reportError("rollOver() failed.", ioe, ErrorManager.OPEN_FAILURE);
     }
   }
   super.subPublish(event);
  }
}
origin: org.jboss.logging/jboss-logging-jdk

  /**
  * This method differentiates DailyRollingFileAppender from its
  * super class.
  * <p/>
  * <p>Before actually logging, this method will check whether it is
  * time to do a rollover. If it is, it will schedule the next
  * rollover time and then rollover.
  */
  protected void subPublish(LogRecord event)
  {
   long n = System.currentTimeMillis();
   if (n >= nextCheck)
   {
     now.setTime(n);
     nextCheck = rc.getNextCheckMillis(now);
     try
     {
      rollOver();
     }
     catch (IOException ioe)
     {
      reportError("rollOver() failed.", ioe, ErrorManager.OPEN_FAILURE);
     }
   }
   super.subPublish(event);
  }
}
org.jboss.logging.jdk.handlersFileHandlersubPublish

Popular methods of FileHandler

  • activateOptions
    If the value of File is not null, then #setFile(String) is called with the values of File andAppend
  • reportError
  • setFile
    Sets and opens the file where the log output will go. The specified file must be writable. If the

Popular in Java

  • Making http requests using okhttp
  • getApplicationContext (Context)
  • getExternalFilesDir (Context)
  • getContentResolver (Context)
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JList (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now