Platform SDK Java 8.5 API Reference

com.genesyslab.platform.logging.runtime.targets
Class FileWriter

java.lang.Object
  extended by com.genesyslab.platform.commons.log.AbstractLogEnabled
      extended by com.genesyslab.platform.logging.runtime.targets.FileWriter
All Implemented Interfaces:
ILogEnabled

public class FileWriter
extends AbstractLogEnabled


Constructor Summary
FileWriter()
           
 
Method Summary
 void activateOptions()
           
 void dispose()
          Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
 boolean getAppendToFile()
           
 CountingTextWriter getCountingWriter()
           
 java.util.Date getCreationTime()
           
 java.lang.String getEncoding()
           
 java.lang.String getFileName()
           
 boolean getFlushWriter()
           
protected  void onEnableLogging(ILogger logger)
          Override this method to perform additional logging related actions, such as passing logger down to hierarchy, etc.
 void setAppendToFile(boolean value)
           
 void setCountingWriter(CountingTextWriter writer)
           
 void setEncoding(java.lang.String encoding)
           
 void setFileName(java.lang.String value)
           
 void setFlushWriter(boolean value)
           
 void write(java.lang.String message)
           
 
Methods inherited from class com.genesyslab.platform.commons.log.AbstractLogEnabled
enableLogging, getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileWriter

public FileWriter()
Method Detail

onEnableLogging

protected void onEnableLogging(ILogger logger)
Description copied from class: AbstractLogEnabled
Override this method to perform additional logging related actions, such as passing logger down to hierarchy, etc.

Overrides:
onEnableLogging in class AbstractLogEnabled
Parameters:
logger - The ILogger instance

getAppendToFile

public boolean getAppendToFile()

setAppendToFile

public void setAppendToFile(boolean value)

getFileName

public java.lang.String getFileName()

setFileName

public void setFileName(java.lang.String value)

getFlushWriter

public boolean getFlushWriter()

setFlushWriter

public void setFlushWriter(boolean value)

getCountingWriter

public CountingTextWriter getCountingWriter()

setCountingWriter

public void setCountingWriter(CountingTextWriter writer)

getCreationTime

public java.util.Date getCreationTime()

activateOptions

public void activateOptions()
                     throws java.lang.Exception
Throws:
java.lang.Exception

write

public void write(java.lang.String message)
           throws java.lang.Exception
Throws:
java.lang.Exception

dispose

public void dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.


setEncoding

public void setEncoding(java.lang.String encoding)

getEncoding

public java.lang.String getEncoding()

Platform SDK Java 8.5 API Reference

Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.