[Feature Request]: Log thread ID in built-in loggers
Is your feature request related to a problem? Please describe.
Currently the built-in loggers do not log the current thread ID. This makes it difficult to differentiate between logs from different threads.
will there be a way to differentiate between the different threads chat completions? Id need to be able to query the sqlite db for all chat completions of a single thread by @Nathan-Intergral
Describe the solution you'd like
In SQLiteLogger and FileLogger (#2596), add thread ID to each logged event. Obtain thread ID through:
import threading
current_thread_id = threading.get_native_id()
print(f"Current thread ID (native): {current_thread_id}")
Additional context
#2617
This is merged, can we close this ticket.
it is not yet in the SQLIteLogger.
If I understand correctly, this threadId logging functionality is available in the FileLogger but not the SQLiteLogger. Is that right, @ekzhu ?
If I understand correctly, this threadId logging functionality is available in the FileLogger but not the SQLiteLogger. Is that right, @ekzhu ?
Yes
Hi, i have had to work on other projects for a while but i am back working with autogen again. Was this ever progressed?
@Nathan-Intergral It is available now in the FileLogger autogen-agentchat~=0.2 but not in the SqliteLogger.
thanks for the update, i rely on the sqllitelogger in order for me to pull out the details for a custom conversation history gui ive created so ill have to wait for the sqllitelogger to get this enhancement
Closing this as team is focusing on v0.4 release for new features.
You are welcome to open a new feature request issue for the new logger handlers -- currently SQLite log handler is not supported. We can discuss whether this should be included in the core library, as an extension module, or a community package.