Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@adobe/aio-lib-core-logging
Advanced tools
npm install @adobe/aio-lib-core-logging
let aioLogger = require('@adobe/aio-lib-core-logging')('App')
aioLogger.info('Hello logs')
Above code will log the following
[App /mynamespace/myaction] info: Hello logs
Where App would be the name of the application/module that is sending the logs.
The logger can be customized by passing a config object at the time of creation.
let aioLogger = require('@adobe/aio-lib-core-logging')('App', config)
The config object can have one or more of the following keys.
The log level can also be overridden using the env variable AIO_LOG_LEVEL
// Winston Logger
let aioLogger = require('@adobe/aio-lib-core-logging')('App', {provider:'winston'})
aioLogger.info('Hello logs')
or
// Debug Logger
let aioLogger = require('@adobe/aio-lib-core-logging')('App', {provider:'debug'})
let aioLogger = require('@adobe/aio-lib-core-logging')('App', {transports: './logfile.txt' })
const winston = require('winston')
let aioLogger = require('@adobe/aio-lib-core-logging')('App', {transports: [new winston.transports.File({ filename: './winstoncustomfilelog.txt' })]})
This is currently as simple as creating a new logger class under src with all the log level functions defined
goto
API
Contributions are welcomed! Read the Contributing Guide for more information.
This project is licensed under the Apache V2 License. See LICENSE for more information.
FAQs
Logger framework for the Adobe I/O SDK
The npm package @adobe/aio-lib-core-logging receives a total of 45,716 weekly downloads. As such, @adobe/aio-lib-core-logging popularity was classified as popular.
We found that @adobe/aio-lib-core-logging demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.