log4js breaking changes
log4js 6.7.1 (November 28, 2022) is its newest release with breaking changes. The first: Signature changed Configuration.levels. Every breaking API change we have recorded in log4js on npm: 24 breaking changes in 7 versions. Below, its 7 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 6.9.1, released March 8, 2023. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
log4js 6.7.1 breaking changes
- Signature changed
Configuration.levels
Was levels?: Levels; now levels?: | Levels | {[name: string]: {value: number; colour: string;};}. npmjs.com
log4js 6.7.0 breaking changes
- Behavior changed
log4js.shutdown
If a callback is passed to log4js.shutdown(), it must be a function, otherwise an error is thrown immediately. Check any callers that pass a non-function value. github.com - Signature changed
Log4js.shutdown
Was shutdown(cb: (error: Error) => void): void | null; now shutdown(cb?: (error?: Error) => void): void. npmjs.com - Signature changed
Logger.setParseCallStackFunction
Was setParseCallStackFunction(parseFunction: Function): void; now setParseCallStackFunction(parseFunction: (error: Error, linesToSkip: number) => CallStack | undefined): void. npmjs.com - Signature changed
LoggingEvent
Was interface LoggingEvent; now interface LoggingEvent extends Partial<CallStack>. npmjs.com - Signature changed
LoggingEvent.callStack
Was callStack?: string; now callStack: string. npmjs.com - Signature changed
LoggingEvent.columnNumber
Was columnNumber?: number; now columnNumber: number. npmjs.com - Signature changed
LoggingEvent.fileName
Was fileName?: string; now fileName: string. npmjs.com - Signature changed
LoggingEvent.functionName
Was functionName?: string; now functionName: string. npmjs.com - Signature changed
LoggingEvent.lineNumber
Was lineNumber?: number; now lineNumber: number. npmjs.com - Signature changed
shutdown
Was function shutdown(cb?: (error: Error) => void): void | null; now function shutdown(cb?: (error?: Error) => void): void. npmjs.com
log4js 6.6.1 breaking changes
- Signature changed
AppenderModule.configure
Was configure: (config: Config, layouts: LayoutsParam) => AppenderFunction; now configure: (config?: Config, layouts?: LayoutsParam, findAppender?: () => AppenderFunction, levels?: Levels) => AppenderFunction. npmjs.com - Signature changed
Recording.configure
Was configure(loggingEvent: LoggingEvent): void; now configure(): AppenderFunction. npmjs.com
log4js 6.6.0 breaking changes
- Removed
Logger.constructor
new Logger() was removed in log4js 6.6.0 npmjs.com - Signature changed
Appender
Was type Appender = CategoryFilterAppender | ConsoleAppender | FileAppender | SyncfileAppender | DateFileAppender | LogLevelFilterAppender | NoLogFilterAppender | MultiFileAppender | MultiprocessAppender | RecordingAppender |... npmjs.com - Signature changed
Format
Was type Format = string | ((req: any, res: any, formatter: ((str: string) => string)) => string); now type Format = | string | ((req: any, res: any, formatter: (str: string) => string) => string). npmjs.com - Signature changed
Layout
Was type Layout = BasicLayout | ColoredLayout | MessagePassThroughLayout | DummyLayout | PatternLayout | CustomLayout; now type Layout = | BasicLayout | ColoredLayout | MessagePassThroughLayout | DummyLayout | PatternLayout | CustomLayout. npmjs.com - Signature changed
Logger
Was class Logger; now interface Logger. npmjs.com
log4js 6.4.7 breaking changes
- Renamed
BaseLayout
Use BasicLayout instead. npmjs.com - Signature changed
Layout
Was type Layout = BaseLayout | ColoredLayout | MessagePassThroughLayout | DummyLayout | PatternLayout | CustomLayout; now type Layout = BasicLayout | ColoredLayout | MessagePassThroughLayout | DummyLayout | PatternLayout | CustomLayout. npmjs.com
log4js 6.4.2 breaking changes
- Removed
Logger.new
Logger.new was removed in log4js 6.4.2 npmjs.com
Older versions
1 older version, each with its first changes. Sign up to see every change
Show 1 older version
log4js 6.4.1 breaking changes
- Removed
AppenderGenerator
AppenderGenerator was removed in log4js 6.4.1 npmjs.com - Signature changed
AppenderModule.configure
Was configure: (config: Config, layouts: LayoutsParam) => AppenderGenerator; now configure: (config: Config, layouts: LayoutsParam) => AppenderFunction. npmjs.com
And 1 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.