Skip to content

Instantly share code, notes, and snippets.

@tonywangcn
Created April 24, 2017 13:47
Show Gist options
  • Save tonywangcn/9e8908ffcfc00191644bc53d9fdf363d to your computer and use it in GitHub Desktop.
Save tonywangcn/9e8908ffcfc00191644bc53d9fdf363d to your computer and use it in GitHub Desktop.
log sample in Mongodb
{
"_id" : ObjectId("58fe7083151099015c678ef0"),
"relativeCreated" : "7.94100761414",
"process" : "372",
"module" : "multithread_log",
"funcName" : "run",
"message" : "Hey log it's a debug",
"clientip" : "your ip",
"filename" : "multithread_log.py",
"levelno" : "20",
"processName" : "MainProcess",
"lineno" : "10",
"asctime" : "2017-04-24 21:39:15,565",
"msg" : "Hey log it's a debug",
"CreateDate" : ISODate("2017-04-25T05:37:23.505+08:00"),
"args" : "()",
"user" : "logging_test",
"exc_text" : "None",
"name" : "root",
"thread" : "123145429647360",
"created" : "1493041155.57",
"threadName" : "Thread-1",
"msecs" : "565.53196907",
"pathname" : "/Users/plantpark/Desktop/Test/Test/multithread_log.py",
"exc_info" : "None",
"levelname" : "INFO"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment