# @types/koa-log4

> TypeScript definitions for koa-log4

Latest version **2.3.7** (published 2025-10-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/koa-log4
pnpm add @types/koa-log4
yarn add @types/koa-log4
bun add @types/koa-log4
```

## Health

**Score 65/100 (B)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 2.3.7 |
| Published | 2025-10-24 |
| First published | 2019-03-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 51437 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/koa-log4
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-log4
- npm.io page: https://npm.io/package/@types/koa-log4

## Dependencies (2)

- [log4js](https://npm.io/package/log4js.md) ^3.0.0
- [@types/koa](https://npm.io/package/@types/koa.md) *

## Recent versions

- 2.3.7 (latest) — 2025-10-24
- 2.3.6 (ts5.1) — 2023-11-07
- 2.3.3 (ts4.0) — 2021-07-08
- 2.3.2 (ts3.5) — 2020-05-15
- 2.3.5 — 2023-10-18
- 2.3.4 — 2023-09-14
- 2.3.1 — 2019-04-01
- 2.3.0 — 2019-03-09

## README

# Installation
> `npm install --save @types/koa-log4`

# Summary
This package contains type definitions for koa-log4 (https://github.com/dominhhai/koa-log4js#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-log4.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-log4/index.d.ts)
````ts
import Koa = require("koa");
import * as Log4js from "log4js";

export function koaLogger(logger4js: Log4js.Logger, optionsOrFormat?: Options | string): Koa.Middleware;

export interface Options {
    format?: string | undefined;
    level?: Log4js.Level | "auto" | undefined;
}

export * from "log4js";

````

### Additional Details
 * Last updated: Fri, 24 Oct 2025 04:02:41 GMT
 * Dependencies: [@types/koa](https://npmjs.com/package/@types/koa), [log4js](https://npmjs.com/package/log4js)

# Credits
These definitions were written by [Cr.](https://github.com/a631807682).

---
_Source: https://npm.io/package/@types/koa-log4 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
