
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@dvsa/azure-logger
Advanced tools
Winston Logger with a custom Azure Application Insights Transport
If using npm:
npm install @dvsa/azure-logger
or if using Yarn
yarn add @dvsa/azure-logger
Specify the environment variables in a .env file, for example
LOG_LEVEL=event
NODE_ENV=development
APPLICATIONINSIGHTS_CONNECTION_STRING={APPLICATION_INSIGHTS_CONNECTION_STRING}
import { Logger } from '@dvsa/azure-logger';
export default new Logger('ftts', 'ftts-location-api');
httpTriggerContextWrapper with req passed in. Use nonHttpTriggerContextWrapper for all other trigger types.
For example, wrap a time trigger function in your function index file like so:import { nonHttpTriggerContextWrapper } from '@dvsa/azure-logger';
import { AzureFunction, Context } from '@azure/functions';
const myTimeTrigger: AzureFunction = async (): Promise<void> => {
// do something
};
export default async (context: Context): Promise<void> => nonHttpTriggerContextWrapper(myTimeTrigger, context);
Request and dependency log methods are still provided for manual tracing if it is needed e.g. for service bus correlation. These require context to be passed in to fetch the correct trace ids.
import logger from './logger';
function getData(): void {
try {
// Do calculations
} catch(error) {
logger.error(error);
}
}
When using an Azure function app the following environment variable must be present and contain the connection string for the application insights instance you wish to use.
APPLICATIONINSIGHTS_CONNECTION_STRING
FAQs
Shareable Logging Facade, implemented with Winston
We found that @dvsa/azure-logger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 19 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.