Cross-platform implementation for SQLiteChatLogger