old_contents: var config  = require("../config.json");
  
  /*****************************************************************************\
      Return a set of functions which we can use to log to console
  \*****************************************************************************/
  module.exports = function() {
      _error = function(message) {
        console.log(config.logger.message + "ERROR:\t" + message);
      };
      
      _warn = function(message) {
        console.log(config.logger.message + "WARNING:\t" + message);
      };
  
      _info = function(message) {
        console.log(config.logger.message + "INFO:\t" + message);
      };
  
      _success = function(message) {
        console.log(config.logger.message + "SUCCESS:\t" + message);
      };
  
      return {
          error:    _error,
          warn:     _warn,
          info:     _info,
          success:  _success,
      };
  }
  
new_contents: var config  = require("../config.json");
  
  (function () {
      'use strict';
  
      angular
          .module('DeezerKids')
          .factory('LoggerService', LoggerService);
  
      LoggerService.$inject = ['$rootScope'];
  
      function LoggerService($rootScope) {
          var service = {};
          
          service.Error = function (message) {
              logMessage('Error', message);
          }
          
          return service;
          
          function logMessage(type, message) {
              console.log(config.logger.message + type + ":\t" + message);
          }        
      }
  
  })();
  
subject: Update logger.service.js