pal_diagnostics: update example
pal_diagnostics: make publisher method private