com.sapportals.wcm.util.log
Class FileChannel
java.lang.Object
com.sapportals.wcm.util.log.AbstractChannel
com.sapportals.wcm.util.log.FileChannel
- All Implemented Interfaces:
- IChannel
public class FileChannel
- extends AbstractChannel
- implements IChannel
Channel for writing log output to a file
FileChannel
public FileChannel(String fileName,
Long maxSize,
Integer maxBacklog,
Boolean showStackTraces,
Boolean showThreads)
throws Exception
- Construct
- Parameters:
fileName - TBD: Description of the incoming method parametermaxSize - TBD: Description of the incoming method parametermaxBacklog - TBD: Description of the incoming method parametershowStackTraces - TBD: Description of the incoming method parametershowThreads - TBD: Description of the incoming method parameter
- Throws:
Exception - Exception raised in failure situation
setFileName
public void setFileName(String fileName)
throws FileNotFoundException
- Set the name of the file the output is written to
- Parameters:
fileName - fileName to be set
- Throws:
FileNotFoundException - Exception raised in failure situation
finalize
public void finalize()
- Close the output stream
- Overrides:
finalize in class Object
log
public void log(String method,
int level,
Object message,
Throwable throwable)
- Log
- Specified by:
log in interface IChannel
- Parameters:
method - TBD: Description of the incoming method parameterlevel - TBD: Description of the incoming method parametermessage - TBD: Description of the incoming method parameterthrowable - TBD: Description of the incoming method parameter
This class can be accessed from:
|
SC
|
DC
|
Public Part
|
ACH
|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2014 SAP AG Complete Copyright Notice