有没有办法区别每个 session 的查询SQL #1282

Closed
opened 2019-04-29 07:38:39 +00:00 by chenxuey · 4 comments
chenxuey commented 2019-04-29 07:38:39 +00:00 (Migrated from github.com)

我想在每个web请求里所有查询 SQL 的语句加上唯一标示打印到日志系统,做链路追踪

我想在每个web请求里所有查询 SQL 的语句加上唯一标示打印到日志系统,做链路追踪
chenxuey commented 2019-04-29 07:44:35 +00:00 (Migrated from github.com)

engine.SetLogger() 是针对全局的,有没有针对单个会话的(session)

engine.SetLogger() 是针对全局的,有没有针对单个会话的(session)

There is not currently.

There is not currently.
chenxuey commented 2019-04-30 03:11:36 +00:00 (Migrated from github.com)

有计划支持吗?

有计划支持吗?

fixed by #1557

fixed by #1557
lunny closed this issue 2020-02-29 09:33:15 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: xorm/xorm#1282
No description provided.