[ANN] Logging api

Keith Hodges keith_hodges at yahoo.co.uk
Mon Dec 31 18:41:20 UTC 2007


Hello all, and happy new year,

There are three Logging packages for Squeak that I know of.

1. SimpleLog
2. Toothpick
3. LogEngine
there is also a Null logger.

This package "Logging", available from SqueakMap and in Universes, is
slightly higher level 'front end' api to these logging back ends.

best regards

Keith

===================
from the class comment

Convenient usage: 'annotated values'

self log x: 10 y: 20 z: 30.

To select a specific log severity level (i.e. not the temporary one
featured above).

self log info x: 10 y: 20 z: 30.

To log the current method's input parameters.

Rectangle-#corner: topLeftPoint extent: heightWidthPoint

self log debug this.

would be the same as

self log corner: topLeftPoint extent: heightWidthPoint.

To log the current methods variables:

self log debug vars instance.




More information about the Squeak-dev mailing list