
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Lightweight logging with timestamps, colors and file support.
Uses chalk for colors.
File writing is asynchronous and doesn't block process.
npm install log-timed
import { casual as log } from 'log-timed'
log('Simple message')
log.file('Log to console and file')
log.error('Error occurred')
log.multiline({ user: 'John', data: [1, 2, 3] })
log.compact('Line 1\nLine 2\nLine 3')
import createLogger from 'log-timed'
const log = createLogger({
useDate: true, // show date
useMs: true, // show milliseconds
colorLeft: 'blue', // timestamp color
file: 'app_', // file prefix
})
log('Custom logging')
Basic:
log() - standard logging.log(...args) - multiple arguments like console.log.logFile(...args) - multiple arguments with file write.file() - log to console and file.fileOnly() - log to file only.multiline() - multiline object output.compact() - compress newlines to single line.rewrite() - rewrite last console line.clear() - clear terminalEvent logging:
.success() - success operations (green).info() - informational messages (cyan).warn() - warnings (yellow).error() - errors (red).debug() - debug info (dimmed)Each event method has a *File() version for writing to file with corresponding prefix (e.g., success_, info_). To write to file without prefix, use method(data, { file: true }).
import { free, simple, casual, full, iso } from 'log-timed'
free('No timestamps') // No timestamps
simple('With time') // [03:00:00] With time
casual('With milliseconds') // [13:37:42.999] With milliseconds
full('Full date and time') // [2025.12.31 23:59:59.999] Full date and time
iso('ISO format') // [2025-10-21T01:21:00.000Z] ISO format
Logs are saved to ./logs/ directory with YYYY.MM.DD.log naming by default.
// Default file: ./logs/2025.11.07.log
log.file('message')
log('message', { file: true })
// With prefix: ./logs/error_2025.11.07.log
log('message', { file: 'error_' })
log.errorFile('message')
// Custom filename: ./logs/app.log
log('message', { file: 'app.log' })
// Custom path: ./custom/path/app.log
log('message', { file: './custom/path/app.log' })
// File only (no console output)
log('message', { fileOnly: true })
// Objects
log({ data: 'test' }) // {"data":"test"}
log({ data: 'test' }, { multiline: true }) // pretty JSON (4 spaces)
log({ data: 'test' }, { multiline: 2 }) // pretty JSON (2 spaces)
// Compact with separators
log('line1\nline2', { multiline: ' ' }) // "line1 line2"
log('line1\nline2', { multiline: '' }) // "line1line2"
log('line1\nline2', { multiline: ', ' }) // "line1, line2"
useDate - show dateuseMs - show millisecondscolorLeft - timestamp colorcolorRight - message colorcolorMs - milliseconds color (default: 'gray')color - set both colorLeft and colorRightfile - file prefix or booleanleftFn - custom function for left partFAQs
Lightweight logging with timestamps, colors and file support
The npm package log-timed receives a total of 1 weekly downloads. As such, log-timed popularity was classified as not popular.
We found that log-timed 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.