In your travels around OpenLaszlo, either writing new code or improving old 
code, if you stumble upon a Debug.write, take a minute to consider if it would 
be better implemented as one of Debug.debug, Debug.info, Debug.warn, or 
Debug.error (or possibly Debug.format, if it really does not fall into one of 
those categories).  Debug.write lives on for compatibility, but it is almost 
never the right choice.  debug/info/warn/error will be output in 'conventional' 
colors, and can be filtered by the setting of Debug.messageLevel.  They also 
support the full suite of formatted output, which can make your messages more 
concise and informative.




Reply via email to