Make log messages serializable