🚀. Socket Launch Week Day 3:Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions.Learn more
Sign In

@storm-stack/logging

Package Overview
Dependencies
Maintainers
2
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storm-stack/logging - npm Package Compare versions

Comparing version
1.31.2
to
1.32.0
+2
-2
dist/storm-log.d.ts
import type { StormConfig } from "@storm-software/config";
import { StormDateTime } from "@storm-stack/date-time/storm-date-time";
import type { Logger, LoggerOptions as PinoLoggerOptions } from "pino";
import type { Logger } from "pino";
import pino from "pino";

@@ -15,3 +15,3 @@ import type { ILoggerWrapper } from "./types";

static get name(): string;
protected static getLogger: () => Logger<PinoLoggerOptions>;
protected static getLogger: () => Logger;
/**

@@ -18,0 +18,0 @@ * Initialize the logs.

import { StormDateTime } from "@storm-stack/date-time/storm-date-time";
import { formatSince } from "@storm-stack/date-time/utilities/format-since";
import { StormError, getCauseFromUnknown } from "@storm-stack/errors";
import { StormError } from "@storm-stack/errors";
import pino from "pino";

@@ -19,3 +19,3 @@ import { LoggingErrorCode } from "./errors.mjs";

throw new StormError(LoggingErrorCode.logs_uninitialized, {
message: "The Storm Log has not been initialized. Please initialize the logs by invoking `StormLog.initialize` before using them"
data: "The Storm Log has not been initialized. Please initialize the logs by invoking `StormLog.initialize` before using them"
});

@@ -70,3 +70,3 @@ }

static fatal(message) {
const error = getCauseFromUnknown(message);
const error = StormError.create(message);
const logger = StormLog.getLogger();

@@ -87,3 +87,3 @@ if (StormLog.#logLevel >= LogLevel.FATAL) {

static error(message) {
const error = getCauseFromUnknown(message);
const error = StormError.create(message);
const logger = StormLog.getLogger();

@@ -104,3 +104,3 @@ if (StormLog.#logLevel >= LogLevel.ERROR) {

static exception(message) {
const error = getCauseFromUnknown(message);
const error = StormError.create(message);
const logger = StormLog.getLogger();

@@ -107,0 +107,0 @@ if (StormLog.#logLevel >= LogLevel.ERROR) {

{
"name": "@storm-stack/logging",
"version": "1.31.2",
"version": "1.32.0",
"type": "module",

@@ -5,0 +5,0 @@ "description": "⚡ The storm-stack monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.",

@@ -24,3 +24,3 @@ <!-- START header -->

[![Version](https://img.shields.io/badge/version-1.31.1-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-stack/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
[![Version](https://img.shields.io/badge/version-1.31.2-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-stack/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)

@@ -27,0 +27,0 @@