place log messages inside queue