function Logger(level, loggerFunction) {
  /**
   * The log level. Refer to the Logger.LogLevels for available log levels. 
   * @name  Logger#level
   * @type  {string}
   * @see Logger.LogLevels
   */
  this.level = level;
  
  this.loggerFunction = loggerFunction;

  if (!this.loggerFunction) {
    this.loggerFunction = this.defaultLoggerFunction;
  }
}
Creates a new Logger object
@class
The Logger class is used to write log information.

@constructor

@param {string} [level]           The log level. Refer to Logger.LogLevels.
@param {object} [loggerFunction]  The function to write log information.