log: thread-safeish