blob: 77ced46aad34bbc1f038fe047937ced267f32911 [file] [log] [blame]
Patrick Venture59a6b1f2018-08-29 11:41:01 -07001#include "config.h"
2
3#include <phosphor-logging/sdjournal.hpp>
4
5namespace phosphor
6{
7namespace logging
8{
9
10SdJournalHandler sdjournal_impl;
11SdJournalHandler* sdjournal_ptr = &sdjournal_impl;
12
13SdJournalHandler* SwapJouralHandler(SdJournalHandler* with)
14{
15 SdJournalHandler* curr = sdjournal_ptr;
16 sdjournal_ptr = with;
17 return curr;
18}
19
20} // namespace logging
21} // namespace phosphor