Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tsed/logger

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tsed/logger - npm Package Compare versions

Comparing version 5.10.0 to 5.11.0

lib/core/LogContext.d.ts

1

lib/core/index.d.ts

@@ -7,1 +7,2 @@ /**

export * from "./LogLevel";
export * from "./LogContext";

@@ -10,2 +10,3 @@ "use strict";

tslib_1.__exportStar(require("./LogLevel"), exports);
tslib_1.__exportStar(require("./LogContext"), exports);
//# sourceMappingURL=index.js.map

9

lib/core/LogEvent.d.ts

@@ -1,6 +0,3 @@

/**
* @module core
*/
/** */
import { LogLevel } from "./LogLevel";
import { LogContext } from "./LogContext";
export declare class LogEvent {

@@ -19,3 +16,3 @@ private _categoryName;

*/
constructor(_categoryName: string, _level: LogLevel, _data: any[], _context: any);
constructor(_categoryName: string, _level: LogLevel, _data: any[], _context: LogContext);
private _startTime;

@@ -28,5 +25,5 @@ get startTime(): Date;

set data(data: any[]);
get context(): Map<string, any>;
get context(): LogContext;
get cluster(): any;
get pid(): any;
}

@@ -6,4 +6,4 @@ /**

export declare class LogLevel {
private level;
private levelStr;
readonly level: number;
readonly levelStr: string;
constructor(level: number, levelStr: string);

@@ -10,0 +10,0 @@ static getLevel(sArg: any | string | LogLevel, defaultLevel?: string | LogLevel): LogLevel;

@@ -11,7 +11,3 @@ "use strict";

transform(loggingEvent, timezoneOffset) {
const log = {
startTime: loggingEvent.startTime,
categoryName: loggingEvent.categoryName,
level: loggingEvent.level.toString()
};
const log = Object.assign(Object.assign({}, loggingEvent.context.toJSON()), { startTime: loggingEvent.startTime, categoryName: loggingEvent.categoryName, level: loggingEvent.level.toString() });
log.data = loggingEvent.data.reduce((data, current) => {

@@ -18,0 +14,0 @@ if (typeof current === "object") {

import { LoggerAppenders } from "./LoggerAppenders";
import { ITableSettings } from "../utils/tableUtils";
import { LogLevel } from "../../core/LogLevel";
import { LogContext } from "../../core/LogContext";
export declare class Logger {

@@ -19,3 +20,3 @@ private _name;

private _context;
get context(): Map<any, any>;
get context(): LogContext;
get name(): string;

@@ -22,0 +23,0 @@ set name(value: string);

@@ -8,2 +8,3 @@ "use strict";

const LogLevel_1 = require("../../core/LogLevel");
const LogContext_1 = require("../../core/LogContext");
class Logger {

@@ -19,3 +20,3 @@ /**

*/
this._context = new Map();
this._context = new LogContext_1.LogContext();
this.level = "all";

@@ -22,0 +23,0 @@ }

{
"name": "@tsed/logger",
"version": "5.10.0",
"version": "5.11.0",
"description": "A multi channel logger written in TypeScript.",

@@ -29,2 +29,3 @@ "main": "./lib/index.js",

"date-format": "^3.0.0",
"lodash": "^4.17.21",
"semver": "^7.3.2",

@@ -31,0 +32,0 @@ "streamroller": "^1.0.3",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc