   # @param [String] msg Message to log.
   # @param [String] msgType Log level.
   _storeLog: (msg, msgType) ->
+    return unless @_areLogsPersistents
     now = new Date()
     log = {}
     log[now.getTime()] = date: now.toUTCString(), type: msgType,  tag: @_tag, msg: msg


  # Set all loggers level
  @_setGlobalLoggersLevel: (level) -> logger.setLevel(level) for name, logger of @_loggers when logger.useGlobalSettings


  @getGlobalLoggersLevel: ->
    if ledger.preferences?.instance?

    @level = Levels[@level] if typeof @level == "string"
    @level = Levels.ALL if @level is true
    @level = Levels.NONE if @level is false
    @setPersistentsLogsEnabled on
    @constructor._loggers[tag] = this

  setPersistentLogsEnabled: (enable) -> @_areLogsPersistents = enable

  #################################
  # Accessors
