9.1. MongoDB
9.1.1. 配置表 config
{ "_id" : ObjectId("5799a8535a855eca473977e1"), "key" : "payment", "value" : { "alpay" : true, "tenpay" : false, "unionpay" : false, } }, { "_id" : ObjectId("5799a8535a855eca47397723"), "key" : "signup", "value" : { "online" : true, "manual" : false } }
9.1.2. 日志表
tag ENUM('unknow','www','user','admin') '日志标签',
time '插入时间',
facility ENUM('config','unionpay','sms','email') '类别',
priority ENUM('info','warning','error','critical','exception','debug') '级别',
message '内容'
/* 1 */ { "_id" : ObjectId("5799b0175a855eca473977e2"), "tag" : "www", "time" : "2016-07-30 12:12:00", "facility" : "config", "priority" : "info", "message" : "xxxxxxxxxxxxxxxxxx" } /* 2 */ { "_id" : ObjectId("5799b10f5a855eca473977e3"), "tag" : "www", "time" : "2016-07-30 12:12:00", "facility" : "config", "priority" : "info", "message" : { "name" : "neo", "age" : 30, "sex" : true } }
原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。
时间: 2024-10-29 15:51:36