
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
@genie-solutions/genie-logger
Advanced tools
Reusable Node.js logger for platform Lambda services.
To install this library into your project
$ npm i @genie-solutions/genie-logger
This library is built using uuid, winston and winston-transport
import { createLoggerFromContext } from "./services/logging";
const createLogger = createLoggerFromContext(APP_NAME, STAGE, LOG_LEVEL);
const logger = createLogger(context.awsRequestId);
logger.info({
type: EventType.CreditAssessed,
payload: {
threadId,
tenantId,
creditBalance,
calculatedCost: cost
}
});
logger.error({
type: EventType.CreditServiceError,
error: { message: error.message }
});
logger.warn({
type: EventType.CreditServiceWarning,
error: { message: error.message }
});
logger.debug({
type: EventType.CreditServiceDebug,
error: { message: error.message }
});
//
// Start profile of 'test'
//
logger.profile('test');
setTimeout(function () {
//
// Stop profile of 'test'. Logging will now take place:
// '17 Jan 21:00:00 - info: test duration=1000ms'
//
logger.profile('test');
}, 1000);
This will output {"level":"info","durationMs":2311,"message":"test"} in the log
// Returns an object corresponding to a specific timing. When done
// is called the timer will finish and log the duration. e.g.:
//
const profiler = logger.startTimer();
setTimeout(function () {
profiler.done({ message: 'Logging message' });
},
This will output {"message":"Logging message","level":"info","durationMs":14990} in the log
The default logger will include the three parameter metadata(APP_NAME, STAGE, LOG_LEVEL) in the log, to extend this with extra metadata, use the extend function
const logger = createLogger(context.awsRequestId).extend(
pick({ requestId: "451" })
);
logger.info("Child logging");
This will output following log:
{"requestId":"451","message":"Child logging","level":"info"}
FAQs
Reusable Node.js logger for platform Lambda services.
We found that @genie-solutions/genie-logger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 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.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.