Text this: Coalgebraic trace semantics via forgetful logics