array of pointcuts
Optional
config: AutoLogConfigconfiguration settings
an array of jquery aop advices
namespace X {
export onRequest() {
log.debug('hello world')
}
}
LogManager.autoLogMethodEntryExit({ target:X, method:/\w+/})
The above results in automatic log entries similar to:
Log Title | Detail |
---|---|
Enter onRequest() | args:[] |
hello world | |
Exit onRequest() | returned: undefined |
Uses AOP to automatically log method entry/exit with arguments to the netsuite execution log. Call this method at the end of your script. Log entries are 'DEBUG' level by default but may be overridden as described below.