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

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

Best Java code snippets using org.jboss.logging.jdk.handlers.FileHandler.setFile (Showing top 6 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

/**
* Instantiate a <code>FileHandler</code> and open the file
* designated by <code>filename</code>. The opened filename will
* become the output destination for this appender.
* <p/>
* <p>If the <code>append</code> parameter is true, the file will be
* appended to. Otherwise, the file designated by
* <code>filename</code> will be truncated before being opened.
* <p/>
* <p>If the <code>bufferedIO</code> parameter is <code>true</code>,
* then buffered IO will be used to write to the output file.
*/
public FileHandler(Formatter layout, String filename, boolean append, boolean bufferedIO,
 int bufferSize)
 throws IOException
{
 super.setFormatter(layout);
 this.setFile(filename, append, bufferedIO, bufferSize);
}
origin: jboss/jboss-logging-jdk

/**
* Instantiate a <code>FileHandler</code> and open the file
* designated by <code>filename</code>. The opened filename will
* become the output destination for this appender.
* <p/>
* <p>If the <code>append</code> parameter is true, the file will be
* appended to. Otherwise, the file designated by
* <code>filename</code> will be truncated before being opened.
* <p/>
* <p>If the <code>bufferedIO</code> parameter is <code>true</code>,
* then buffered IO will be used to write to the output file.
*/
public FileHandler(Formatter layout, String filename, boolean append, boolean bufferedIO,
 int bufferSize)
 throws IOException
{
 super.setFormatter(layout);
 this.setFile(filename, append, bufferedIO, bufferSize);
}
origin: org.jboss.logging/jboss-logging-jdk

/**
* Instantiate a <code>FileHandler</code> and open the file
* designated by <code>filename</code>. The opened filename will
* become the output destination for this appender.
* <p/>
* <p>If the <code>append</code> parameter is true, the file will be
* appended to. Otherwise, the file designated by
* <code>filename</code> will be truncated before being opened.
* <p/>
* <p>If the <code>bufferedIO</code> parameter is <code>true</code>,
* then buffered IO will be used to write to the output file.
* @param layout 
* @param filename 
* @param append 
* @param bufferedIO 
* @param bufferSize 
* @throws IOException 
*/
public FileHandler(Formatter layout, String filename, boolean append, boolean bufferedIO,
 int bufferSize)
 throws IOException
{
 super.setFormatter(layout);
 this.setFile(filename, append, bufferedIO, bufferSize);
}
origin: jboss/jboss-common-logging-jdk

/**
* If the value of <b>File</b> is not <code>null</code>, then {@link
* #setFile} is called with the values of <b>File</b>  and
* <b>Append</b> properties.
*
*/
public void activateOptions()
{
 if (fileName != null)
 {
   try
   {
    setFile(fileName, fileAppend, bufferedIO, bufferSize);
   }
   catch (java.io.IOException e)
   {
    reportError("setFile(" + fileName + "," + fileAppend + ") call failed.",
      e, ErrorManager.OPEN_FAILURE);
   }
 }
 else
 {
   reportError("File option not set for appender [" + name + "]."
    +" Are you using FileHandler instead of ConsoleAppender?",
    null, ErrorManager.OPEN_FAILURE);
 }
}
origin: org.jboss.logging/jboss-logging-jdk

/**
* If the value of <b>File</b> is not <code>null</code>, then {@link
* #setFile(String)} is called with the values of <b>File</b>  and
* <b>Append</b> properties.
*
*/
public void activateOptions()
{
 if (fileName != null)
 {
   try
   {
    setFile(fileName, fileAppend, bufferedIO, bufferSize);
   }
   catch (java.io.IOException e)
   {
    reportError("setFile(" + fileName + "," + fileAppend + ") call failed.",
      e, ErrorManager.OPEN_FAILURE);
   }
 }
 else
 {
   reportError("File option not set for appender [" + name + "]."
    +" Are you using FileHandler instead of ConsoleAppender?",
    null, ErrorManager.OPEN_FAILURE);
 }
}
origin: jboss/jboss-logging-jdk

/**
* If the value of <b>File</b> is not <code>null</code>, then {@link
* #setFile} is called with the values of <b>File</b>  and
* <b>Append</b> properties.
*
*/
public void activateOptions()
{
 if (fileName != null)
 {
   try
   {
    setFile(fileName, fileAppend, bufferedIO, bufferSize);
   }
   catch (java.io.IOException e)
   {
    reportError("setFile(" + fileName + "," + fileAppend + ") call failed.",
      e, ErrorManager.OPEN_FAILURE);
   }
 }
 else
 {
   reportError("File option not set for appender [" + name + "]."
    +" Are you using FileHandler instead of ConsoleAppender?",
    null, ErrorManager.OPEN_FAILURE);
 }
}
org.jboss.logging.jdk.handlersFileHandlersetFile

Javadoc

The File property takes a string value which should be the name of the file to append to.

Note: Actual opening of the file is made when #activateOptions is called, not when the options are set.

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
  • subPublish

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getContentResolver (Context)
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • ImageIO (javax.imageio)
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