Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
@genesislcap/foundation-logger
Advanced tools
foundation-logger
provides a logging utility that currently wraps version 2 of consola.
To enable this module in your application, follow the steps below.
@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"
...
},
...
}
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.
import { logger } from '../utils';
...
logger.debug('Checks complete');
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;
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.
Genesis low-code platform
FAQs
Genesis Foundation Logger
The npm package @genesislcap/foundation-logger receives a total of 3,293 weekly downloads. As such, @genesislcap/foundation-logger popularity was classified as popular.
We found that @genesislcap/foundation-logger demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.