db4o 7.4

com.db4o.tools
Class Logger

java.lang.Object
  extended by com.db4o.tools.Logger

public class Logger
extends java.lang.Object

Logger class to log and analyse objects in RAM.

This class is not part of db4o.jar!
It is delivered as sourcecode in the path ../com/db4o/tools/


Method Summary
static void log(java.lang.Object obj)
          logs the structure of an object.
static void log(ObjectContainer container, java.lang.Object obj)
          logs the structure of an object.
static void logAll(ObjectContainer container)
          logs all objects in the passed ObjectContainer.
static void main(java.lang.String[] args)
          opens a database file and logs the content of a class to standard out.
static void setMaximumDepth(int depth)
          limits logging to a maximum depth.
static void setOut(java.io.PrintStream ps)
          redirects output to a different PrintStream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(java.lang.String[] args)
opens a database file and logs the content of a class to standard out.

Parameters:
args - expects [database filename] [fully qualified classname]

log

public static void log(ObjectContainer container,
                       java.lang.Object obj)
logs the structure of an object.

Parameters:
container - the ObjectContainer to be used, or null to log any object.
obj - the object to be analysed.

log

public static void log(java.lang.Object obj)
logs the structure of an object.

Parameters:
obj - the object to be analysed.

logAll

public static void logAll(ObjectContainer container)
logs all objects in the passed ObjectContainer.

Parameters:
container - the ObjectContainer to be used.

setOut

public static void setOut(java.io.PrintStream ps)
redirects output to a different PrintStream.

Parameters:
ps - the Printstream to be used.

setMaximumDepth

public static void setMaximumDepth(int depth)
limits logging to a maximum depth.

Parameters:
depth - the maximum depth.

db4o 7.4

Copyright 2007 db4objects Inc. All rights reserved.