Refactored away from logtarget class [#56303144]

Signed-off-by: Stephan Hagemann <stephan@pivotallabs.com>