@logtail/node
Version:
Better Stack Node.js logger (formerly Logtail)
10 lines (9 loc) • 375 B
TypeScript
import { Context, StackContextHint } from "@logtail/types";
import { Node } from "./node";
/**
* Determines the file name and the line number from which the log
* was initiated (if we're able to tell).
*
* @returns Context The caller's filename and the line number
*/
export declare function getStackContext(logtail: Node, stackContextHint?: StackContextHint): Context;