import { createConsoleLogger } from "./transport.console.js";
import { createPrettyLogger, isPrettyModeEnabled } from "./transport.pretty.js";
import { createServerLogger } from "./transport.server.js";
function isNodeServerRuntime() {
  if (typeof window !== "undefined") return false;
  if (typeof process === "undefined") return false;
  if (process.env.NEXT_RUNTIME === "edge") return false;
  return true;
}
function selectTransport(namespace) {
  if (!isNodeServerRuntime()) return createConsoleLogger(namespace);
  return isPrettyModeEnabled() ? createPrettyLogger(namespace) : createServerLogger(namespace);
}
export {
  selectTransport
};
//# sourceMappingURL=transport.js.map
