Coalgebraic trace semantics via forgetful logics (Logical Methods in Computer Science, 2017)