This commit is contained in:
parent
499b8ec46d
commit
be8073ea02
1 changed files with 2 additions and 2 deletions
|
@ -78,7 +78,7 @@ function getCallerInfo(config: Required<LoggerConfig>): {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
const rawMatch = line.match(/at\s+(\/.*):(\d+):(\d+)/);
|
const rawMatch = line.match(/at\s+(?:.*\()?(.+):(\d+):(\d+)\)?/);
|
||||||
if (rawMatch) {
|
if (rawMatch) {
|
||||||
const fullPath = rawMatch[1];
|
const fullPath = rawMatch[1];
|
||||||
const lineNumber = rawMatch[2];
|
const lineNumber = rawMatch[2];
|
||||||
|
@ -146,7 +146,7 @@ function parsePattern(ctx: PatternContext): string {
|
||||||
config.prettyPrint && typeof data === "object" && data !== null
|
config.prettyPrint && typeof data === "object" && data !== null
|
||||||
? inspect(data, {
|
? inspect(data, {
|
||||||
depth: null,
|
depth: null,
|
||||||
colors: false,
|
colors: true,
|
||||||
breakLength: 1,
|
breakLength: 1,
|
||||||
compact: false,
|
compact: false,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue