lib/logger/core.js
function(options)
    {
      var localIncludeTimestamp;
      var localBufferMaxLength;
      var localMessageMaxLength;
      var localLevel;

      // if an options argument is specified
      if (Util.exists(options))
      {
        // make sure it's an object
        Errors.assertInternal(Util.isObject(options));

        localIncludeTimestamp = options.includeTimestamp;
        localBufferMaxLength = options.bufferMaxLength;
        localMessageMaxLength = options.messageMaxLength;
        localLevel = options.level;
      }

      // if an includeTimestamp options is specified, convert it to a boolean
      if (Util.exists(localIncludeTimestamp))
      {
        includeTimestamp = !!localIncludeTimestamp;
      }
      else if (!Util.exists(includeTimestamp))
      {
        // default to true
        includeTimestamp = true;
      }

      // if a bufferMaxLength option is specified, make sure
      // it's a positive integer before updating the logger option
      if (Util.exists(localBufferMaxLength))
      {
        Errors.assertInternal(
            Util.number.isPositiveInteger(localBufferMaxLength));
        bufferMaxLength = localBufferMaxLength;
      }
      // initialize logger option if configure() hasn't been called before
      else if (!Util.exists(bufferMaxLength))
      {
        bufferMaxLength = DEFAULT_BUFFER_MAX_LENGTH;
      }

      // if a messageMaxLength option is specified, make sure
      // it's a positive integer before updating the logger option
      if (Util.exists(localMessageMaxLength))
      {
        Errors.assertInternal(
            Util.number.isPositiveInteger(localMessageMaxLength));
        messageMaxLength = localMessageMaxLength;
      }
      // initialize logger option if configure() hasn't been called before
      else if (!Util.exists(messageMaxLength))
      {
        messageMaxLength = DEFAULT_MESSAGE_MAX_LENGTH;
      }

      // if a level option is specified, make sure
      // it's valid before updating the logger option
      if (Util.exists(localLevel))
      {
        Errors.assertInternal(
            MAP_LOG_LEVEL_TO_OBJECT.hasOwnProperty(localLevel));
        currlevelObject = MAP_LOG_LEVEL_TO_OBJECT[localLevel];
      }
      // initialize logger option if configure() hasn't been called before
      else if (!Util.exists(currlevelObject))
      {
        currlevelObject = DEFAULT_LEVEL;
      }
    }
function(options)
    {
      var localIncludeTimestamp;
      var localBufferMaxLength;
      var localMessageMaxLength;
      var localLevel;

      // if an options argument is specified
      if (Util.exists(options))
      {
        // make sure it's an object
        Errors.assertInternal(Util.isObject(options));

        localIncludeTimestamp = options.includeTimestamp;
        localBufferMaxLength = options.bufferMaxLength;
        localMessageMaxLength = options.messageMaxLength;
        localLevel = options.level;
      }

      // if an includeTimestamp options is specified, convert it to a boolean
      if (Util.exists(localIncludeTimestamp))
      {
        includeTimestamp = !!localIncludeTimestamp;
      }
      else if (!Util.exists(includeTimestamp))
      {
        // default to true
        includeTimestamp = true;
      }

      // if a bufferMaxLength option is specified, make sure
      // it's a positive integer before updating the logger option
      if (Util.exists(localBufferMaxLength))
      {
        Errors.assertInternal(
            Util.number.isPositiveInteger(localBufferMaxLength));
        bufferMaxLength = localBufferMaxLength;
      }
      // initialize logger option if configure() hasn't been called before
      else if (!Util.exists(bufferMaxLength))
      {
        bufferMaxLength = DEFAULT_BUFFER_MAX_LENGTH;
      }

      // if a messageMaxLength option is specified, make sure
      // it's a positive integer before updating the logger option
      if (Util.exists(localMessageMaxLength))
      {
        Errors.assertInternal(
            Util.number.isPositiveInteger(localMessageMaxLength));
        messageMaxLength = localMessageMaxLength;
      }
      // initialize logger option if configure() hasn't been called before
      else if (!Util.exists(messageMaxLength))
      {
        messageMaxLength = DEFAULT_MESSAGE_MAX_LENGTH;
      }

      // if a level option is specified, make sure
      // it's valid before updating the logger option
      if (Util.exists(localLevel))
      {
        Errors.assertInternal(
            MAP_LOG_LEVEL_TO_OBJECT.hasOwnProperty(localLevel));
        currlevelObject = MAP_LOG_LEVEL_TO_OBJECT[localLevel];
      }
      // initialize logger option if configure() hasn't been called before
      else if (!Util.exists(currlevelObject))
      {
        currlevelObject = DEFAULT_LEVEL;
      }
    }
function ( options ) { var localIncludeTimestamp ; var localBufferMaxLength ; var localMessageMaxLength ; var localLevel ; // if an options argument is specified if ( Util . exists ( options ) ) { // make sure it's an object Errors . assertInternal ( Util . isObject ( options ) ) ; localIncludeTimestamp = options . includeTimestamp ; localBufferMaxLength = options . bufferMaxLength ; localMessageMaxLength = options . messageMaxLength ; localLevel = options . level ; } // if an includeTimestamp options is specified, convert it to a boolean if ( Util . exists ( localIncludeTimestamp ) ) { includeTimestamp = ! ! localIncludeTimestamp ; } else if ( ! Util . exists ( includeTimestamp ) ) { // default to true includeTimestamp = true ; } // if a bufferMaxLength option is specified, make sure // it's a positive integer before updating the logger option if ( Util . exists ( localBufferMaxLength ) ) { Errors . assertInternal ( Util . number . isPositiveInteger ( localBufferMaxLength ) ) ; bufferMaxLength = localBufferMaxLength ; } // initialize logger option if configure() hasn't been called before else if ( ! Util . exists ( bufferMaxLength ) ) { bufferMaxLength = DEFAULT_BUFFER_MAX_LENGTH ; } // if a messageMaxLength option is specified, make sure // it's a positive integer before updating the logger option if ( Util . exists ( localMessageMaxLength ) ) { Errors . assertInternal ( Util . number . isPositiveInteger ( localMessageMaxLength ) ) ; messageMaxLength = localMessageMaxLength ; } // initialize logger option if configure() hasn't been called before else if ( ! Util . exists ( messageMaxLength ) ) { messageMaxLength = DEFAULT_MESSAGE_MAX_LENGTH ; } // if a level option is specified, make sure // it's valid before updating the logger option if ( Util . exists ( localLevel ) ) { Errors . assertInternal ( MAP_LOG_LEVEL_TO_OBJECT . hasOwnProperty ( localLevel ) ) ; currlevelObject = MAP_LOG_LEVEL_TO_OBJECT [ localLevel ] ; } // initialize logger option if configure() hasn't been called before else if ( ! Util . exists ( currlevelObject ) ) { currlevelObject = DEFAULT_LEVEL ; } }
Configures this logger.

@param {Object} options
Configures this logger .