import{C as e,D as t,M as n,p as r,t as i,v as a,y as o}from"./subsystem-BQ1073Mu.js";const s=/^([a-z][a-z0-9-]{1,20}):\s+(.*)$/i;function c(e){let t=e.match(s);if(!t)return null;let[,n,r]=t;return{subsystem:n,rest:r}}function l(e){let t=e.runtime===r?c(e.message):null;if(t){i(t.subsystem)[e.subsystemMethod](t.rest);return}e.runtime[e.runtimeMethod](e.runtimeFormatter(e.message)),n()[e.loggerMethod](e.message)}function u(e,t=r){l({message:e,runtime:t,runtimeMethod:`log`,runtimeFormatter:o,loggerMethod:`info`,subsystemMethod:`info`})}function d(e,n=r){l({message:e,runtime:n,runtimeMethod:`log`,runtimeFormatter:t,loggerMethod:`warn`,subsystemMethod:`warn`})}function f(e,t=r){l({message:e,runtime:t,runtimeMethod:`error`,runtimeFormatter:a,loggerMethod:`error`,subsystemMethod:`error`})}function p(t){n().debug(t),e(t)}export{d as i,f as n,u as r,p as t};
