@oino-ts/types 0.8.0 → 0.8.2

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.
@@ -20,6 +20,7 @@ export declare enum OINOLogLevel {
20
20
  export declare abstract class OINOLog {
21
21
  protected static _instance: OINOLog;
22
22
  protected _logLevels: Record<string, OINOLogLevel>;
23
+ protected _defaultLogLevel: OINOLogLevel;
23
24
  /**
24
25
  * Abstract logging method to implement the actual logging operation.
25
26
  *
@@ -127,6 +128,18 @@ export declare abstract class OINOLog {
127
128
  *
128
129
  */
129
130
  static debug(domain: string, channel: string, method: string, message: string, data?: any): void;
131
+ /**
132
+ * Get current log levels as an array of objects with domain, channel, method and level.
133
+ *
134
+ */
135
+ static exportLogLevels(): any[];
136
+ /**
137
+ * Import log levels from an array of objects with domain, channel, method and level.
138
+ *
139
+ * @param logLevels array of log level objects
140
+ *
141
+ */
142
+ static importLogLevels(logLevels: any[]): void;
130
143
  }
131
144
  /**
132
145
  * Logging implementation based on console.log.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oino-ts/types",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "description": "OINO TS package for types.",
5
5
  "author": "Matias Kiviniemi (pragmatta)",
6
6
  "license": "MPL-2.0",