Source code sample for fast logging