
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
@nldoc/logger
Advanced tools
A TypeScript logger package that provides structured logging in ECS (Elastic Common Schema) format. Built on top of Pino for high-performance logging with environment-configurable settings.
This logger provides:
Install the package via npm:
npm install @nldoc/logger
import { logger } from '@nldoc/logger';
// Simple logging
logger.info('Application started');
// Structured logging with additional context
logger.child({ userId: '123', module: 'auth' }).info('User logged in');
// Different log levels
logger.debug('Debug information');
logger.warn('Warning message');
logger.error('Error occurred');
The logger can be configured through environment variables:
LOGGING_ENABLED (default: true) - Enable/disable loggingTRACE_ENABLED (default: false) - Enable trace-level loggingENVIRONMENT (default: development) - Environment identifierNODE_VERSION - Node.js version (automatically injected into logs)Clone the repository:
git clone https://gitlab.com/logius/nldoc/lib/typescript/logger.git
cd typescript-logger
Install dependencies:
npm install
Build the project:
npm run build
npm run test - Run the test suite with coveragenpm run build - Build TypeScript to JavaScriptnpm run check - Type-check without emitting filesnpm run lint - Lint the codebasenpm run format - Format code using Prettiernpm run fix - Auto-fix linting and formatting issuesFor detailed Pino API documentation, see the official Pino documentation.
Run the test suite:
npm test
We welcome contributions! Please ensure:
npm test)npm run format:check)npm run lint)npm run check)This project is licensed under the European Union Public License 1.2 - see LICENSE for details.
FAQs
A logger package that handles logging in ECS format. Based on Pino.
We found that @nldoc/logger demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.