# @types/loggly

> TypeScript definitions for loggly

Latest version **1.1.34** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/loggly
pnpm add @types/loggly
yarn add @types/loggly
bun add @types/loggly
```

## Health

**Score 45/100 (D)** — status: abandoned.

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

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.34 |
| Published | 2023-11-07 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51432 |
| Maintainers | types |

## Links

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

## Recent versions

- 1.1.34 (latest) — 2023-11-07
- 1.1.32 (ts4.3) — 2023-08-30
- 1.1.31 (ts3.6) — 2021-07-08
- 1.1.30 (ts2.0) — 2016-10-06
- 1.1.33 — 2023-10-18
- 1.0.29 — 2016-09-19
- 1.0.28 — 2016-07-14
- 1.0.27-alpha — 2016-07-08
- 1.0.26-alpha — 2016-07-04
- 1.0.25-alpha — 2016-07-02
- 1.0.24-alpha — 2016-07-01
- 1.0.23-alpha — 2016-07-01
- 1.0.22-alpha — 2016-05-25
- 1.0.21-alpha — 2016-05-20
- 1.0.16-alpha — 2016-05-19
- … 1 more at https://npm.io/package/@types/loggly/versions

## README

# Installation
> `npm install --save @types/loggly`

# Summary
This package contains type definitions for loggly (https://github.com/winstonjs/node-loggly).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/loggly.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/loggly/index.d.ts)
````ts
export declare interface LogglyOptions {
    token: string;
    subdomain: string;
    tags?: string[] | undefined;
    json?: boolean | undefined;
    host?: string | undefined;
    auth?: {
        username: string;
        password: string;
    } | undefined;
}

declare interface SharedSearchOptions {
    from?: string | undefined;
    until?: string | undefined;
    size?: number | undefined;
    rows?: number | undefined;
}
export declare interface SearchOptionsWithQ extends SharedSearchOptions {
    q: string;
}
export declare interface SearchOptionsWithQuery extends SharedSearchOptions {
    query: string;
}
export declare type SearchOptions = SearchOptionsWithQ | SearchOptionsWithQuery;

export declare interface SearchResults {
    events: SearchResultsEvent[];
    total_events: number;
    page: number;
}
export declare interface SearchResultsEvent {
    id: string;
    logtypes: string[];
    event: any;
    logmsg: string;
    raw: string;
    timestamp: number;
    tags: string[];
}

export declare function createClient(options: LogglyOptions): LogglyInstance;
export declare const version: number;

export declare interface LogglyInstance {
    log(message: any, tags?: string[], callback?: (err: any, results: any) => void): this;
    log(message: any, callback?: (err: any, results: any) => void): this;
    search(query: string, callback?: (err: any, results: SearchResults) => void): Search;
    search(options: SearchOptions, callback?: (err: any, results: SearchResults) => void): Search;
}

export declare interface Search {
    run(callback: (err: any, results: SearchResults) => void): this;
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:38 GMT
 * Dependencies: none

# Credits
These definitions were written by [Ray Martone](https://github.com/rmartone), and [Joshua DeVinney](https://github.com/geoffreak).

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