PastureHerdingLog = {}

local PREFIX = "[PastureHerding] "

function PastureHerdingLog.info(fmt, ...)
    Logging.info(PREFIX .. fmt, ...)
end

function PastureHerdingLog.warning(fmt, ...)
    Logging.warning(PREFIX .. fmt, ...)
end

function PastureHerdingLog.error(fmt, ...)
    Logging.error(PREFIX .. fmt, ...)
end

function PastureHerdingLog.dev(fmt, ...)
    if PastureHerdingLog.devMode then
        Logging.info(PREFIX .. "[dev] " .. fmt, ...)
    end
end

-- Release default: quiet. Diagnostic [dev] lines (MEADOWLOG, refreshFoodDemand,
-- substitute/walker traces, etc.) are off unless the player enables
-- Settings -> Verbose log output (set_debugLog toggles this flag).
PastureHerdingLog.devMode = false
