New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gc-json-logger

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gc-json-logger - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

27

dist/ILogger.d.ts

@@ -8,12 +8,39 @@ import { LogEntryMetadata } from './types/LogEntryMetadata';

log(severity: Severity, message: string, meta?: LogEntryMetadata): void;
/**
* The log entry has no assigned severity level.
*/
default(message: string, meta?: LogEntryMetadata): void;
/**
* Debug or trace information.
*/
debug(message: string, meta?: LogEntryMetadata): void;
/**
* Routine information, such as ongoing status or performance.
*/
info(message: string, meta?: LogEntryMetadata): void;
/**
* Normal but significant events, such as start up, shut down, or a configuration change.
*/
notice(message: string, meta?: LogEntryMetadata): void;
/**
* Warning events might cause problems.
*/
warning(message: string, meta?: LogEntryMetadata): void;
/**
* Error events are likely to cause problems.
*/
error(message: string, meta?: LogEntryMetadata): void;
/**
* Critical events cause more severe problems or outages.
*/
critical(message: string, meta?: LogEntryMetadata): void;
/**
* A person must take an action immediately.
*/
alert(message: string, meta?: LogEntryMetadata): void;
/**
* One or more systems are unusable.
*/
emergency(message: string, meta?: LogEntryMetadata): void;
}
//# sourceMappingURL=ILogger.d.ts.map

5

dist/Logger.d.ts

@@ -19,3 +19,3 @@ import { ILogger } from './ILogger';

* Creates a new or returns already initialized logger.
* The initial call with a name argument will store that logger with in the context.
* The initial call with a name argument will store that logger in the context.
* Subsequent calls without the `name` argument will result in the same logger instance.

@@ -48,5 +48,2 @@ *

protected constructor(name?: string);
/**
* Log an event by specifying severity level
*/
log(severity: Severity, message: string, meta?: LogEntryMetadata): void;

@@ -53,0 +50,0 @@ default(message: string, meta?: LogEntryMetadata): void;

14

dist/Logger.js

@@ -24,3 +24,3 @@ "use strict";

* Creates a new or returns already initialized logger.
* The initial call with a name argument will store that logger with in the context.
* The initial call with a name argument will store that logger in the context.
* Subsequent calls without the `name` argument will result in the same logger instance.

@@ -64,5 +64,2 @@ *

}
/**
* Log an event by specifying severity level
*/
log(severity, message, meta = {}) {

@@ -98,35 +95,26 @@ if (severity < Logger.level) {

}
/* The log entry has no assigned severity level. */
default(message, meta) {
this.log(Severity_1.Severity.DEFAULT, message, meta);
}
/* Debug or trace information. */
debug(message, meta) {
this.log(Severity_1.Severity.DEBUG, message, meta);
}
/* Routine information, such as ongoing status or performance. */
info(message, meta) {
this.log(Severity_1.Severity.INFO, message, meta);
}
/* Normal but significant events, such as start up, shut down, or a configuration change. */
notice(message, meta) {
this.log(Severity_1.Severity.NOTICE, message, meta);
}
/* Warning events might cause problems. */
warning(message, meta) {
this.log(Severity_1.Severity.WARNING, message, meta);
}
/* Error events are likely to cause problems. */
error(message, meta) {
this.log(Severity_1.Severity.ERROR, message, meta);
}
/* Critical events cause more severe problems or outages. */
critical(message, meta) {
this.log(Severity_1.Severity.CRITICAL, message, meta);
}
/* A person must take an action immediately. */
alert(message, meta) {
this.log(Severity_1.Severity.ALERT, message, meta);
}
/* One or more systems are unusable. */
emergency(message, meta) {

@@ -133,0 +121,0 @@ this.log(Severity_1.Severity.EMERGENCY, message, meta);

{
"name": "gc-json-logger",
"description": "Log JSON entries to stdout/stderr to be queried in Google Cloud Monitoring",
"version": "0.0.3",
"version": "0.0.4",
"homepage": "https://github.com/igrek8/gc-json-logger#readme",

@@ -6,0 +6,0 @@ "author": "Igor Korchagin (https://github.com/igrek8)",

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