// Generated by IcedCoffeeScript 1.7.1-c
(function() {
  var Logger, baselog, k, rpc, v,
    __hasProp = {}.hasOwnProperty,
    __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };

  baselog = require('iced-logger');

  rpc = require('framed-msgpack-rpc').log;

  Logger = (function(_super) {
    __extends(Logger, _super);

    function Logger() {
      return Logger.__super__.constructor.apply(this, arguments);
    }

    Logger.prototype._log = function(m, l, ohook) {
      var map, msg, parts;
      parts = [];
      if (this.prefix != null) {
        parts.push(this.prefix);
      }
      parts.push(m);
      msg = parts.join(" ");
      map = {
        D: "debug",
        I: "info",
        W: "warn",
        E: "error",
        F: "fatal"
      };
      l = map[l] || "warn";
      return baselog[l](msg);
    };

    Logger.prototype.make_child = function(d) {
      return new Logger(d);
    };

    return Logger;

  })(rpc.Logger);

  rpc.set_default_logger_class(Logger);

  for (k in baselog) {
    v = baselog[k];
    exports[k] = v;
  }

}).call(this);
