Adding logger and publisher snippets