fix(core): update
This commit is contained in:
parent
922591d45d
commit
872385dbc4
14
package.json
14
package.json
@ -29,15 +29,15 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://gitlab.com/pushrocks/beautylog",
|
"homepage": "https://gitlab.com/pushrocks/beautylog",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/consolecolor": "^2.0.1",
|
"@push.rocks/consolecolor": "^2.0.1",
|
||||||
"@pushrocks/smartlog-interfaces": "^3.0.0",
|
"@push.rocks/smartlog-interfaces": "^3.0.0",
|
||||||
"@pushrocks/smartpromise": "^4.0.2"
|
"@push.rocks/smartpromise": "^4.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.66",
|
"@git.zone/tsbuild": "^2.1.66",
|
||||||
"@gitzone/tsrun": "^1.2.42",
|
"@git.zone/tsrun": "^1.2.42",
|
||||||
"@gitzone/tstest": "^1.0.74",
|
"@git.zone/tstest": "^1.0.74",
|
||||||
"@pushrocks/tapbundle": "^5.0.8",
|
"@push.rocks/tapbundle": "^5.0.8",
|
||||||
"@types/node": "^20.4.1"
|
"@types/node": "^20.4.1"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
|
2805
pnpm-lock.yaml
generated
2805
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -12,7 +12,7 @@ This command adds `@push.rocks/smartlog-destination-local` to your project's dep
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
The `@push.rocks/smartlog-destination-local` package provides a way to easily log messages to the local console with support for color coding and structured message formats. It is especially useful when combined with the `@pushrocks/smartlog` package to create a powerful logging solution that is both visually informative and structured for better logging practices.
|
The `@push.rocks/smartlog-destination-local` package provides a way to easily log messages to the local console with support for color coding and structured message formats. It is especially useful when combined with the `@push.rocks/smartlog` package to create a powerful logging solution that is both visually informative and structured for better logging practices.
|
||||||
|
|
||||||
### Importing and Setting Up
|
### Importing and Setting Up
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ The primary feature of `@push.rocks/smartlog-destination-local` is to log messag
|
|||||||
#### Example Log Message
|
#### Example Log Message
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import type { ILogPackage } from '@pushrocks/smartlog-interfaces';
|
import type { ILogPackage } from '@push.rocks/smartlog-interfaces';
|
||||||
|
|
||||||
const logPackage: ILogPackage = {
|
const logPackage: ILogPackage = {
|
||||||
timestamp: Date.now(),
|
timestamp: Date.now(),
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { tap, expect } from '@pushrocks/tapbundle';
|
import { tap, expect } from '@push.rocks/tapbundle';
|
||||||
|
|
||||||
import * as smartlogDesinationLocal from '../ts/index.js';
|
import * as smartlogDesinationLocal from '../ts/index.js';
|
||||||
import type { ILogContext } from '@pushrocks/smartlog-interfaces';
|
import type { ILogContext } from '@push.rocks/smartlog-interfaces';
|
||||||
|
|
||||||
const testLogContext: ILogContext = {
|
const testLogContext: ILogContext = {
|
||||||
company: 'Lossless GmbH',
|
company: 'Lossless GmbH',
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* autocreated commitinfo by @pushrocks/commitinfo
|
* autocreated commitinfo by @pushrocks/commitinfo
|
||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@pushrocks/smartlog-destination-local',
|
name: '@push.rocks/smartlog-destination-local',
|
||||||
version: '9.0.1',
|
version: '9.0.2',
|
||||||
description: 'a smartlog destination targeting the local console'
|
description: 'a smartlog destination targeting the local console'
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import * as plugins from './sl.destlocal.plugins.js';
|
import * as plugins from './plugins.js';
|
||||||
import type { ILogDestination, ILogPackage, TLogLevel } from '@pushrocks/smartlog-interfaces';
|
import type { ILogDestination, ILogPackage, TLogLevel } from '@push.rocks/smartlog-interfaces';
|
||||||
|
|
||||||
// other beautylog classes
|
// other beautylog classes
|
||||||
import { type TColorName } from '@pushrocks/consolecolor';
|
import { type TColorName } from '@push.rocks/consolecolor';
|
||||||
|
|
||||||
export class DestinationLocal implements ILogDestination {
|
export class DestinationLocal implements ILogDestination {
|
||||||
/**
|
/**
|
@ -1,2 +1,2 @@
|
|||||||
// export classes
|
// export classes
|
||||||
export { DestinationLocal } from './sl.destlocal.classes.destinationlocal.js';
|
export { DestinationLocal } from './classes.destinationlocal.js';
|
||||||
|
5
ts/plugins.ts
Normal file
5
ts/plugins.ts
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import * as consolecolor from '@push.rocks/consolecolor';
|
||||||
|
import * as smartlogInterfaces from '@push.rocks/smartlog-interfaces';
|
||||||
|
import * as smartpromise from '@push.rocks/smartpromise';
|
||||||
|
|
||||||
|
export { consolecolor, smartlogInterfaces, smartpromise };
|
@ -1,5 +0,0 @@
|
|||||||
import * as consolecolor from '@pushrocks/consolecolor';
|
|
||||||
import * as smartlogInterfaces from '@pushrocks/smartlog-interfaces';
|
|
||||||
import * as smartpromise from '@pushrocks/smartpromise';
|
|
||||||
|
|
||||||
export { consolecolor, smartlogInterfaces, smartpromise };
|
|
Loading…
Reference in New Issue
Block a user