/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { LogLevel } from "./LogLevel.js";
var Console;
((Console2) => {
  Console2.system = globalThis.console;
  Console2.console = Console2.system;
  function write(text, message) {
    switch (message.level) {
      case LogLevel.DEBUG:
        Console2.console.debug(text);
        break;
      case LogLevel.INFO:
        Console2.console.info(text);
        break;
      case LogLevel.NOTICE:
        Console2.console.info(text);
        break;
      case LogLevel.WARN:
        Console2.console.warn(text);
        break;
      case LogLevel.ERROR:
        Console2.console.error(text);
        break;
      case LogLevel.FATAL:
        Console2.console.error(text);
        break;
    }
  }
  Console2.write = write;
})(Console || (Console = {}));
export {
  Console
};
//# sourceMappingURL=Console.js.map
