public class

Logger

extends Object
java.lang.Object
   ↳ com.trilead.ssh2.log.Logger

Class Overview

Logger - a very simple logger, mainly used during development. Is not based on log4j (to reduce external dependencies). However, if needed, something like log4j could easily be hooked in.

For speed reasons, the static variables are not protected with semaphores. In other words, if you dynamicaly change the logging settings, then some threads may still use the old setting.

Summary

Fields
private String className
public static boolean enabled
public static DebugLogger logger
Public Constructors
Logger(Class x)
Public Methods
final static Logger getLogger(Class x)
final boolean isEnabled()
final void log(int level, String message)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private String className

public static boolean enabled

public static DebugLogger logger

Public Constructors

public Logger (Class x)

Parameters
x

Public Methods

public static final Logger getLogger (Class x)

Parameters
x

public final boolean isEnabled ()

public final void log (int level, String message)

Parameters
level
message