de.fhg.igd.earth.observe.log
Class TextLogger

java.lang.Object
  extended byde.fhg.igd.earth.observe.log.TextLogger
All Implemented Interfaces:
Logger

public class TextLogger
extends Object
implements Logger

A simple text logger to store the protocol of the tracer Title : Earth Copyright : Copyright (c) 2001 Organisation : IGD FhG

Version:
: 1.0
Author:
: Werner Beutel

Field Summary
private  FileOutputStream fout_
           
 
Constructor Summary
TextLogger()
          Creates an instance of this class
 
Method Summary
 void addLine(String text)
          Sends a string to the file
 String getIdentName()
          Returns the ident name of the logger
 boolean init(String name)
          Initializes the logger with the given name and opens the file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fout_

private FileOutputStream fout_
Constructor Detail

TextLogger

public TextLogger()
Creates an instance of this class

Method Detail

getIdentName

public String getIdentName()
Returns the ident name of the logger

Specified by:
getIdentName in interface Logger

init

public boolean init(String name)
Initializes the logger with the given name and opens the file.

Specified by:
init in interface Logger
Parameters:
name -
Returns:
result

addLine

public void addLine(String text)
Sends a string to the file

Specified by:
addLine in interface Logger
Parameters:
text -


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.