# @tsed/logger-loggly

> Loggly appender module for @tsed/logger

Latest version **8.0.5** (published 2026-03-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install @tsed/logger-loggly
pnpm add @tsed/logger-loggly
yarn add @tsed/logger-loggly
bun add @tsed/logger-loggly
```

## Health

**Score 60/100 (C)** — status: active.

Positive: has types; esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 8.0.5 |
| Published | 2026-03-18 |
| First published | 2021-03-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 66 |
| Author | Romain Lenzotti |
| Maintainers | romakita |
| Keywords | ts, log, debug, typescript, trace, loggly |

## Links

- npm: https://www.npmjs.com/package/@tsed/logger-loggly
- Repository: https://github.com/tsedio/logger
- Homepage: https://github.com/tsedio/logger/tree/production/packages/loggly
- Issues: https://github.com/tsedio/logger/issues
- npm.io page: https://npm.io/package/@tsed/logger-loggly

## Dependencies (3)

- [tslib](https://npm.io/package/tslib.md) 2.8.1
- [node-loggly-bulk](https://npm.io/package/node-loggly-bulk.md) ^4.0.2
- [@types/node-loggly-bulk](https://npm.io/package/@types/node-loggly-bulk.md) ^2.2.4

## 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

- 8.0.5 (latest) — 2026-03-18
- 8.0.0-rc.1 (rc) — 2025-08-04
- 8.0.4 — 2025-08-19
- 8.0.3 — 2025-08-14
- 8.0.2 — 2025-08-14
- 8.0.1 — 2025-08-10
- 8.0.0 — 2025-08-09
- 7.0.3-rc.1 — 2025-06-09
- 7.0.2 — 2025-03-15
- 7.0.1 — 2024-11-30
- 7.0.0 — 2024-11-30
- 6.7.8 — 2024-09-18
- 6.7.7 — 2024-09-18
- 6.7.6 — 2024-09-18
- 6.7.5 — 2024-03-15
- … 40 more at https://npm.io/package/@tsed/logger-loggly/versions

## README

# @tsed/logger-loggly

[![Build Status](https://travis-ci.org/tsedio/logger.svg?branch=master)](https://travis-ci.org/tsedio/logger)
[![Coverage Status](https://coveralls.io/repos/github/tsedio/logger/badge.svg?branch=master)](https://coveralls.io/github/tsedio/logger?branch=master)
[![TypeScript](https://badges.frapsoft.com/typescript/love/typescript.svg?v=100)](https://github.com/ellerbrock/typescript-badges/)
[![npm version](https://badge.fury.io/js/%40tsed%2Flogger.svg)](https://badge.fury.io/js/%40tsed%2Flogger)
[![Dependencies](https://david-dm.org/tsedio/logger.svg)](https://david-dm.org/tsedio/logger#info=dependencies)
[![img](https://david-dm.org/tsedio/logger/dev-status.svg)](https://david-dm.org/tsedio/logger/#info=devDependencies)
[![img](https://david-dm.org/tsedio/logger/peer-status.svg)](https://david-dm.org/tsedio/logger/#info=peerDependenciess)
[![Known Vulnerabilities](https://snyk.io/test/github/tsedio/logger/badge.svg)](https://snyk.io/test/github/tsedio/ts-express-decorators)

<p style="text-align: center" align="center">
 <a href="https://tsed.dev" target="_blank"><img src="https://tsed.dev/tsed-og.png" width="200" alt="Ts.ED logo"/></a>
</p>

A package of Ts.ED logger framework.

## Features

Sends logging events to [Loggly](https://www.loggly.com), optionally adding tags.
This appender uses [node-loggly-bulk](https://www.npmjs.com/package/node-loggly-bulk).
Consult the docs for node-loggly-bulk, or loggly itself, if you want more information on the configuration options below.

## Installation

```bash
npm install --save @tsed/logger-loggly
```

## Configuration

- `type` - `loggly`
- `options.token` - `string` - your really long input token
- `options.subdomain` - `string` - your subdomain
- `options.auth` - `object` (optional) - authentication details
  - `username` - `string`
  - `password` - `string`
- `options.tags` - `Array<string>` (optional) - tags to include in every log message

See all available options for Loggly [here](https://www.npmjs.com/package/node-loggly-bulk).

## Example

```typescript
import {Logger} from "@tsed/logger";
import "@tsed/logger-loggly";

const logger = new Logger("loggerName");

logger.appenders.set("stdout", {
  type: "loggly",
  level: ["info"],
  options: {
    token: "somethinglong",
    subdomain: "your.subdomain",
    tags: ["tag1"]
  }
});

logger.info({tags: ["my-tag-1", "my-tag-2"]}, "Some message");
```

This will result in a log message being sent to loggly with the tags `tag1`, `my-tag-1`, `my-tag-2`.

## Backers

Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/tsed#backer)]

<a href="https://opencollective.com/tsed#backers" target="_blank"><img src="https://opencollective.com/tsed/tiers/backer.svg?width=890"></a>

## Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/tsed#sponsor)]

## License

The MIT License (MIT)

Copyright (c) 2016 - Today Romain Lenzotti

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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