@xylabs/logger
Version:
XYLabs Logger Library
7 lines • 356 B
TypeScript
/**
* Retrieves the name of the calling function by inspecting the stack trace.
* @param depth - The stack frame depth to inspect (default: 2, the caller's caller).
* @returns The function name, or '<unknown>' if it cannot be determined.
*/
export declare const getFunctionName: (depth?: number) => string;
//# sourceMappingURL=getFunctionName.d.ts.map