Underpin-WP / underpin-plugin-boilerplate

7 stars 1 forks source link

Logger shows up in all pages #17

Closed alexstandiford closed 4 years ago

alexstandiford commented 4 years ago

This is because the logger utility runs on shutdown, which is somewhat necessary since this needs to happen after everything else has happened.

We need to embed some logic that prevents the logger content from being output outside of "regular" page loads.

It should not display on REST pages, RSS pages, or login pages, for example.