Fixing missing raw message
This commit is contained in:
parent
965c85a275
commit
51785e2b13
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hibas123/logging",
|
"name": "@hibas123/logging",
|
||||||
"version": "2.0.7",
|
"version": "2.0.8",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "out/index.js",
|
"main": "out/index.js",
|
||||||
"types": "out/index.d.ts",
|
"types": "out/index.d.ts",
|
||||||
|
@ -168,13 +168,15 @@ export class LoggingBase {
|
|||||||
a("]: ");
|
a("]: ");
|
||||||
|
|
||||||
|
|
||||||
let mb = "";
|
let raw: string[] = [];
|
||||||
|
|
||||||
const formatted: FormattedLine[] = [];
|
const formatted: FormattedLine[] = [];
|
||||||
let line: FormattedLine;
|
let line: FormattedLine;
|
||||||
const newLine = () => {
|
const newLine = () => {
|
||||||
if (line && line.length > 0)
|
if (line && line.length > 0) {
|
||||||
formatted.push(line);
|
formatted.push(line);
|
||||||
|
raw.push(line.map(e => e.text).join(""));
|
||||||
|
}
|
||||||
line = [...prefix];
|
line = [...prefix];
|
||||||
}
|
}
|
||||||
newLine();
|
newLine();
|
||||||
@ -209,9 +211,6 @@ export class LoggingBase {
|
|||||||
|
|
||||||
newLine();
|
newLine();
|
||||||
|
|
||||||
let raw = removeColors(mb).split("\n");
|
|
||||||
|
|
||||||
|
|
||||||
let msg: Message = {
|
let msg: Message = {
|
||||||
date: new Date(),
|
date: new Date(),
|
||||||
file,
|
file,
|
||||||
|
Loading…
Reference in New Issue
Block a user