Skip to Content
0
Former Member
Mar 12, 2004 at 10:53 AM

Logging API does not behave as expected

27 Views

I try to get me going with logging and tracing in

Sneak Preview II.

I face some difficulties with using <i>entering(...)</i> and <i>exiting(...):

public static void main(String[] args)

{

String _method = "main";

LogRecord lr = loc.entering(_method);

loc.assertion(lr.getGroup() != null, "Group == null");

loc.groupT("displayed ???????????");

loc.exiting();

}</i>

It seems that <i>entering()</i> does not create a group:

- The assertion fails, the group is null.

- There is now output for <i>groupT()</i>

- exiting does not use the subloc in its output

According to the API doc and the tutorial, I would

expect this to work in that manner.

Regards

Andreas