Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

org.eclipse.rse.logging
Class LoggerFactory

java.lang.Object
  extended by 
org.eclipse.rse.logging.LoggerFactory

public class LoggerFactory
extends Object

Factory class for creating Logger instances.
Keep in mind that this factory class follows the singleton model.
ie: once an instance of a Logger class for a given plugin is created, it will always be reused.


Constructor Summary
LoggerFactory ()
           
 
Method Summary
static void freeLogger ( Plugin plugin)
          Frees resources used by the Logger instance for the given plugin.
static  Logger getLogger ( Plugin plugin)
          Returns the Logger instance for a given plugin.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggerFactory

public LoggerFactory()
Method Detail

getLogger

public static 
Logger getLogger(
Plugin plugin)
Returns the Logger instance for a given plugin. There is only one instance of the Logger class per plugin.

Parameters:
plugin - the plugin for which to find or create the log
Returns:
the logger for that plugin

freeLogger

public static void freeLogger(
Plugin plugin)
Frees resources used by the Logger instance for the given plugin. This method must be called as part of the the plugin shutdown life cycle.

Parameters:
plugin - the plugin for which to free logging resources

RSE
Release 3.0

Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire