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

@genesislcap/foundation-logger

Package Overview
Dependencies
Maintainers
0
Versions
735
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@genesislcap/foundation-logger

Genesis Foundation Logger

  • 14.231.1-alpha-b781bc2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.4K
decreased by-46.23%
Maintainers
0
Weekly downloads
 
Created
Source

Genesis Foundation Logger

lerna TypeScript

foundation-logger provides a logging utility that currently wraps version 2 of consola.

Installation

To enable this module in your application, follow the steps below.

  1. Add @genesislcap/foundation-logger as a dependency in your package.json file. Whenever you change the dependencies of your project, ensure you run the $ npm run bootstrap command again. You can find more information in the package.json basics page.
{
  ...
  "dependencies": {
    ...
    "@genesislcap/foundation-logger": "latest"
    ...
  },
  ...
}
  1. Create a logger in my-package/utils/logger.ts for example.
import { createLogger } from '@genesislcap/foundation-logger';
export const logger = createLogger('my-package');

The logger will be set to LogLevel.Debug by default, however you can pass options as the second parameter to tailor this.

export const logger = createLogger('my-package', { level: LogLevel.Debug, ... });

LoggerOptions type extends the ConsolaOptions type.

  1. Use the logger in your package.
import { logger } from '../utils';
...
logger.debug('Checks complete');
  1. Explicitly set the log level of an imported foundation package when needed.
import { logger as commsLogger } from '@genesislcap/foundation-comms';
import { logger as storeLogger } from '@genesislcap/foundation-store';
import { LogLevel } from '@genesislcap/foundation-logger';
commsLogger.level = LogLevel.Warn;
storeLogger.level = LogLevel.Silent;

API Docs

License

Note: this project provides front-end dependencies and uses licensed components listed in the next section; thus, licenses for those components are required during development. Contact Genesis Global for more details.

Licensed components

Genesis low-code platform

FAQs

Package last updated on 13 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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