analogger 1.26.0 → 1.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/demo.js +2 -2
- package/esm/ana-logger.mjs +0 -3
- package/package.json +1 -1
- package/src/ana-logger.cjs +0 -2
package/demo.js
CHANGED
|
@@ -2,7 +2,7 @@ const AnaLogger = require("./");
|
|
|
2
2
|
|
|
3
3
|
const anaLogger = new AnaLogger();
|
|
4
4
|
|
|
5
|
-
anaLogger.setOptions({silent: false, lidLenMax: 8});
|
|
5
|
+
anaLogger.setOptions({silent: false, lidLenMax: 8, logToRemote: true});
|
|
6
6
|
anaLogger.setDefaultContext({
|
|
7
7
|
"contextName": "DEFAULT",
|
|
8
8
|
"target": "USER",
|
|
@@ -16,4 +16,4 @@ anaLogger.setDefaultContext({
|
|
|
16
16
|
anaLogger.setActiveTargets("localhost, api");
|
|
17
17
|
anaLogger.log({lid: "WEB35382", target: "localhost", color: "yellow"}, `Log with target`);
|
|
18
18
|
anaLogger.log({lid: "WEB35382", target: "localhost"}, `Log with target`);
|
|
19
|
-
anaLogger.log({lid: "WEB35382", color: "
|
|
19
|
+
anaLogger.log({lid: "WEB35382", color: "green", target: "localhost"}, `Log without target`);
|
package/esm/ana-logger.mjs
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
import path from "path";
|
|
8
8
|
import fs from "fs";
|
|
9
9
|
import os from "os";
|
|
10
|
-
import fetch from "node-fetch";
|
|
11
10
|
import toAnsi from "to-ansi";
|
|
12
11
|
import {
|
|
13
12
|
COLOR_TABLE, SYSTEM, MAX_CHILDREN_DOM_ANALOGGER, CLASS_REMOVED_NOTIF, ADD_TYPE, CONSOLE_AREA_CLASSNAME,
|
|
@@ -21,8 +20,6 @@ import {CONSOLE_HEADER_CLASSNAME, CONSOLE_FOOTER_CLASSNAME} from "./constants.m
|
|
|
21
20
|
|
|
22
21
|
|
|
23
22
|
|
|
24
|
-
|
|
25
|
-
|
|
26
23
|
// to-ansi is also used by the browser
|
|
27
24
|
|
|
28
25
|
|
package/package.json
CHANGED