FileDocCategorySizeDatePackage
AEDiagnosticsLogger.javaAPI DocAzureus 3.0.3.42154Mon Oct 01 14:47:04 BST 2007org.gudy.azureus2.core3.util

AEDiagnosticsLogger

public class AEDiagnosticsLogger extends Object
author
parg

Fields Summary
protected String
name
protected boolean
first_file
protected boolean
writtenToThisSession
Constructors Summary
protected AEDiagnosticsLogger(String _name)

	
	
	
				 
	
		name		= _name;
	
Methods Summary
protected java.lang.StringgetName()

		return( name );
	
protected booleanisFirstFile()

		return( first_file );
	
public booleanisWrittenToThisSession()

		return writtenToThisSession;
	
public voidlog(java.lang.String str)

		AEDiagnostics.log( this, str );
	
public voidlog(java.lang.Throwable e)

		AEDiagnostics.log( this, e );
	
public voidlogAndOut(java.lang.String str)

		logAndOut( str, false );
	
public voidlogAndOut(java.lang.String str, boolean stderr)

		if ( stderr ){
			System.err.println( str );
		}else{
			System.out.println( str );
		}
		
		log( str );
	
public voidlogAndOut(java.lang.Throwable e)

		e.printStackTrace();
		
		log( e );
	
protected voidsetFirstFile(boolean b)

		first_file	= b;
	
public voidsetWrittenToThisSession(boolean writtenToThisSession)

		this.writtenToThisSession = writtenToThisSession;