Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Fetch any URL via Chrome CDP and convert the rendered page to clean markdown with YouTube transcript support.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
scripts/lib/utils/logger.ts
1export interface Logger {2info(message: string): void;3warn(message: string): void;4error(message: string): void;5debug(message: string): void;6}78export function createLogger(debugEnabled = false): Logger {9const print = (level: string, message: string): void => {10console.error(`[${level}] ${message}`);11};1213return {14info(message: string) {15print("info", message);16},17warn(message: string) {18print("warn", message);19},20error(message: string) {21print("error", message);22},23debug(message: string) {24if (debugEnabled) {25print("debug", message);26}27},28};29}3031