我在Django中有一个在女巫中记录的应用程序... 我的问题是,如果两个用户同时使用一个应用程序,则日志混合在一起。这样,如果有错误,我将看不到应用程序卡在哪里...
如何将用户添加到日志文件(可能在 function Human(name, height, weight, diet) {
this.name = name;
this.height = height;
this.weight = weight;
this.diet = diet;
}
(function ($) {
$.fn.serializeFormJSON = function () {
var o = new Human();
var a = this.serializeArray();
$.each(a, function () {
if (o[this.name]) {
if (!o[this.name].push) {
o[this.name] = [o[this.name]];
}
o[this.name].push(this.value || '');
} else {
o[this.name] = this.value || '';
}
});
return o;
};
})(jQuery);
$('form').submit(function (e) {
e.preventDefault();
var data = $(this).serializeFormJSON();
console.log(data);
});
中)或如何为每个用户创建不同的文件...
现在我已设置日志记录:
formatters