1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
| struct 表示一张表, entry 表示表字段 必要配置:struct: name; entry: name, type, desc type = string: size必须 { 描述类型, 对应数据库类型, 对应程序类型} { 'tinyint', 'tinyint', 'int8_t'}, { 'utinyint', 'tinyint unsigned', 'uint8_t'}, { 'smallint', 'smallint', 'int16_t'}, { 'usmallint', 'smallint unsigned', 'uint16_t'}, { 'int', 'int', 'int32_t'}, { 'uint', 'int unsigned', 'uint32_t'}, { 'bigint', 'bigint', 'int64_t'}, { 'biguint', 'bigint unsigned', 'uint64_t'}, { 'float', 'float', 'float'}, { 'double', 'double', 'double'}, { 'blob', 'blob', 'std::string'}, // TODO:sscanf会有问题,暂时不支持 { 'datetime', 'datetime', 'char'}, { 'string', 'varchar', 'char'}, oldname : 修改原有名称 index : 索引
角色相关日志必填: <entry name='event_time' type='datetime' desc='游戏事件的时间' /> <entry name='game_id' type='string' size='128' desc='游戏ID' /> <entry name='area_id' type='uint' desc='区服ID' /> <entry name='group_id' type='uint' desc='服ID' /> <entry name='platform' type='string' size='32' desc='设备类型(android=1,ios=2)' /> <entry name='channel_id' type='string' size='128' desc='渠道ID' /> <entry name='mid' type='string' size='128' desc='玩家用户名' /> <entry name='character_id' type='string' size='128' desc='角色ID' />
非角色相关日志必填: <entry name='event_time' type='datetime' desc='游戏事件的时间' /> <entry name='game_id' type='string' size='128' desc='游戏ID' /> <entry name='area_id' type='uint' desc='区服ID' /> <entry name='group_id' type='uint' desc='服ID' />
|