Hi, In which situation should I use log.debug?
# suitescript
s
Hi, In which situation should I use log.debug?
c
For debugging messages that you’d only want to see when debugging. The log level on the deployment would not normally be Debug on production, for example
👍 1
s
use log.debug for details mostly only interesting to the developer for diagnostics. I use info level for interesting milestones in a script execution.
👍 1
s
Thanks @CD, thanks @stalbert
s
If you use NFT, the logger there allows you to have multiple loggers for different purposes, and independently control their visible logging levels (unlike the NS UI that has only one top level setting for the loglevel)
👍 1
s
@stalbert Sorry to ask, but what would NFT and NS be?
c
NS=NetSuite
👍 1
s
NFT = NetSuite FastTrack Toolkit (silly name, but serious library).
👍 1
s
thank you guys @stalbert @CD