Added support for source_id when emitting log message

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