Compare commits

..

4 Commits

Author SHA1 Message Date
ed2b74d436 3.0.3 2023-07-12 19:21:37 +02:00
0caf48a734 fix(core): update 2023-07-12 19:21:36 +02:00
c4d6402fd9 switch to new org scheme 2023-07-11 00:57:32 +02:00
83bc0c512b switch to new org scheme 2023-07-10 02:56:58 +02:00
8 changed files with 917 additions and 669 deletions

View File

@ -3,10 +3,10 @@
"projectType": "npm", "projectType": "npm",
"module": { "module": {
"githost": "gitlab.com", "githost": "gitlab.com",
"gitscope": "pushrocks", "gitscope": "push.rocks",
"gitrepo": "smartlog", "gitrepo": "smartlog",
"description": "minimalistic distributed and extensible logging tool", "description": "minimalistic distributed and extensible logging tool",
"npmPackagename": "@pushrocks/smartlog", "npmPackagename": "@push.rocks/smartlog",
"license": "MIT", "license": "MIT",
"projectDomain": "push.rocks" "projectDomain": "push.rocks"
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/smartlog", "name": "@push.rocks/smartlog",
"version": "3.0.2", "version": "3.0.3",
"private": false, "private": false,
"description": "minimalistic distributed and extensible logging tool", "description": "minimalistic distributed and extensible logging tool",
"keywords": [ "keywords": [
@ -26,12 +26,12 @@
"@gitzone/tsbundle": "^2.0.6", "@gitzone/tsbundle": "^2.0.6",
"@gitzone/tsrun": "^1.2.17", "@gitzone/tsrun": "^1.2.17",
"@gitzone/tstest": "^1.0.72", "@gitzone/tstest": "^1.0.72",
"@pushrocks/tapbundle": "^5.0.4", "@push.rocks/tapbundle": "^5.0.4",
"@types/node": "^18.6.1" "@types/node": "^18.6.1"
}, },
"dependencies": { "dependencies": {
"@pushrocks/isounique": "^1.0.4", "@push.rocks/isounique": "^1.0.4",
"@pushrocks/smartlog-interfaces": "^3.0.0" "@push.rocks/smartlog-interfaces": "^3.0.0"
}, },
"files": [ "files": [
"ts/**/*", "ts/**/*",

1552
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
import { expect, tap } from '@pushrocks/tapbundle'; import { expect, tap } from '@push.rocks/tapbundle';
import * as smartlog from '../ts/index.js'; import * as smartlog from '../ts/index.js';
let testConsoleLog: smartlog.ConsoleLog; let testConsoleLog: smartlog.ConsoleLog;

View File

@ -1,4 +1,4 @@
import { expect, tap } from '@pushrocks/tapbundle'; import { expect, tap } from '@push.rocks/tapbundle';
import * as smartlog from '../ts/index.js'; import * as smartlog from '../ts/index.js';
let testConsoleLog: smartlog.ConsoleLog; let testConsoleLog: smartlog.ConsoleLog;

View File

@ -2,7 +2,7 @@
* autocreated commitinfo by @pushrocks/commitinfo * autocreated commitinfo by @pushrocks/commitinfo
*/ */
export const commitinfo = { export const commitinfo = {
name: '@pushrocks/smartlog', name: '@push.rocks/smartlog',
version: '3.0.2', version: '3.0.3',
description: 'minimalistic distributed and extensible logging tool' description: 'minimalistic distributed and extensible logging tool'
} }

View File

@ -1,21 +1,19 @@
import * as plugins from './smartlog.plugins.js'; import * as plugins from './smartlog.plugins.js';
import { ILogDestination, ILogPackage } from '@pushrocks/smartlog-interfaces';
export class LogRouter { export class LogRouter {
/** /**
* all log destinations * all log destinations
*/ */
private logDestinations: ILogDestination[] = []; private logDestinations: plugins.smartlogInterfaces.ILogDestination[] = [];
constructor() {} constructor() {}
public addLogDestination(logDestination: ILogDestination) { public addLogDestination(logDestination: plugins.smartlogInterfaces.ILogDestination) {
this.logDestinations.push(logDestination); this.logDestinations.push(logDestination);
} }
// routes the log according to added logDestinations // routes the log according to added logDestinations
public async routeLog(logPackageArg: ILogPackage) { public async routeLog(logPackageArg: plugins.smartlogInterfaces.ILogPackage) {
for (const logDestination of this.logDestinations) { for (const logDestination of this.logDestinations) {
await logDestination.handleLog(logPackageArg); await logDestination.handleLog(logPackageArg);
} }

View File

@ -1,4 +1,4 @@
import * as isounique from '@pushrocks/isounique'; import * as isounique from '@push.rocks/isounique';
import * as smartlogInterfaces from '@pushrocks/smartlog-interfaces'; import * as smartlogInterfaces from '@push.rocks/smartlog-interfaces';
export { isounique, smartlogInterfaces }; export { isounique, smartlogInterfaces };