# winston-azure-function

> A winston logging for azure function

Latest version **1.0.4** (published 2017-12-04) · ISC license · 0 weekly downloads

## Install

```sh
npm install winston-azure-function
pnpm add winston-azure-function
yarn add winston-azure-function
bun add winston-azure-function
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2017-12-04 |
| First published | 2017-12-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ramji Piramanayagam |
| Maintainers | ramji.p |
| Keywords | winston, azure, function, serverless, context, logging, sysadmin, tools |

## Links

- npm: https://www.npmjs.com/package/winston-azure-function
- Repository: https://github.com/RamjiP/winston-azure-function
- Homepage: https://github.com/RamjiP/winston-azure-function#readme
- Issues: https://github.com/RamjiP/winston-azure-function/issues
- npm.io page: https://npm.io/package/winston-azure-function

## Dependencies (1)

- [winston](https://npm.io/package/winston.md) ^3.0.0-rc1

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 1.0.4 (latest) — 2017-12-04
- 1.0.3 — 2017-12-04
- 1.0.2 — 2017-12-04
- 1.0.1 — 2017-12-04
- 1.0.0 — 2017-12-04

## README

# winston-azure-function

Winston transport for [azure function][2] using [winston][1]

## Installation

``` bash
  $ npm install winston
  $ npm install winston-azure-function
```

## Usage
Here is the use of azure function context.
``` js
  var winston = require('winston');
  require('winston-azure-table-storage');
  
  winston.configure({
      transports: [
          new (winston.transports.AzureFunction)({ context: azContext })
      ]
  });
  
  winston.warn('Hello toto!');
```

[1]: https://github.com/winstonjs/winston
[2]: https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference-node#context-object

---
_Source: https://npm.io/package/winston-azure-function · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
