Add bin and edit workflow
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s

This commit is contained in:
2026-09-16 13:11:16 -06:00
parent c8ac4fcae5
commit 4cee170d66
17576 changed files with 895740 additions and 2 deletions
@@ -0,0 +1,53 @@
# frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2024-2025, by Samuel Williams.
require_relative "logger"
module Console
# The public logger interface.
module Interface
# Get the current logger instance.
def logger
Logger.instance
end
# Set the current logger instance.
#
# The current logger instance is assigned per-fiber.
def logger= instance
Logger.instance= instance
end
# Emit a debug log message.
def debug(...)
Logger.instance.debug(...)
end
# Emit an informational log message.
def info(...)
Logger.instance.info(...)
end
# Emit a warning log message.
def warn(...)
Logger.instance.warn(...)
end
# Emit an error log message.
def error(...)
Logger.instance.error(...)
end
# Emit a fatal log message.
def fatal(...)
Logger.instance.fatal(...)
end
# Emit a log message with arbitrary arguments and options.
def call(...)
Logger.instance.call(...)
end
end
end