• 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.

    Returns

    an array of jquery aop advices

    Example

    log all methods on the object X

    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

    Parameters

    • methodsToLogEntryExit: {
          method: string | RegExp;
          target: Object;
      }

      array of pointcuts

      • method: string | RegExp
      • target: Object
    • Optional config: AutoLogConfig

      configuration settings

    Returns any

Generated using TypeDoc