Work with a proper LogRecord type internally