Can the TiDB-server error log include timestamps?

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: tidb-server错误日志能否增加下时间?

| username: DBRE

Feedback on Requirements
Please clearly and accurately describe the problem scenario, required behavior, and background information to help the product team follow up on the requirements in a timely manner.
[Problem Scenario Involved in the Requirement]
Can the tidb-server error log include timestamps? Without them, it’s impossible to know the exact time of the error.


[Expected Requirement Behavior]
Add timestamp printing.

| username: zhanggame1 | Original post link

What kind of log is this? Normal logs usually have timestamps.

| username: hey-hoho | Original post link

This is indeed a pain point, I’ve encountered it many times.

| username: hey-hoho | Original post link

This is the standard error log file tidb_stderr.log, all located in the log directory.

| username: WalterWj | Original post link

It can’t be done, this is the log of an exception.

| username: Hacker007 | Original post link

tidd.log should also have abnormal output, right?

| username: redgame | Original post link

tidb-server error log, support adding