magically-sdk
Version:
Official SDK for Magically - Build mobile apps with AI
38 lines (37 loc) • 918 B
TypeScript
/**
* Simple, formatted logger for Magically SDK
* Provides clean, readable debug output
*/
export declare class Logger {
private isDebugEnabled;
private prefix;
constructor(isDebugEnabled?: boolean, prefix?: string);
/**
* Log debug information (only when debug is enabled)
*/
debug(step: string, data?: any): void;
/**
* Log success steps
*/
success(step: string, data?: any): void;
/**
* Log errors (always shown, regardless of debug flag)
*/
error(step: string, error?: any): void;
/**
* Log warnings
*/
warn(step: string, data?: any): void;
/**
* Log info (always shown)
*/
info(step: string, data?: any): void;
/**
* Sanitize sensitive data for logging
*/
private sanitizeData;
/**
* Create a scoped logger for a specific component
*/
scope(scopeName: string): Logger;
}