Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions dist/winston-loggly.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import TransportStream, { TransportStreamOptions } from 'winston-transport';
import { TransformableInfo } from 'logform';
import loggly from 'loggly';
interface LogglyTransportOptions extends TransportStreamOptions, loggly.LogglyOptions {
id?: any;
tag?: any;
}
interface QueryOptions {
rows?: number;
limit?: number;
start?: Date | number;
until?: Date | number | string;
from?: Date | number | string;
order?: string;
[key: string]: any;
}
export declare class Loggly extends TransportStream {
name: string;
client: loggly.LogglyInstance;
tags: string[];
constructor(options?: LogglyTransportOptions);
log(info: TransformableInfo, callback?: () => void): void;
_extractContext(options?: QueryOptions): QueryOptions;
query(options: QueryOptions, callback: (err: any, result: any) => void): void;
sanitizeLogs<T>(logs: T): T;
normalizeQuery(options: QueryOptions): {
rows: number;
limit: number;
start: number;
util: Date;
order: string;
} & QueryOptions;
_logligy(options: QueryOptions): loggly.SearchOptionsWithQuery;
}
export {};
162 changes: 162 additions & 0 deletions dist/winston-loggly.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/winston-loggly.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 33 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,45 @@
{
"name": "winston-loggly",
"version": "1.3.1",
"name": "@bwbr/winston-loggly",
"version": "3.0.0-beta.1",
"description": "A Loggly transport for winston",
"author": "Charlie Robbins <[email protected]>",
"repository": {
"type": "git",
"url": "http://github.com/indexzero/winston-loggly.git"
},
"keywords": ["logging", "sysadmin", "tools"],
"keywords": [
"logging",
"sysadmin",
"tools",
"winston"
],
"dependencies": {
"loggly": "~1.1.0"
"logform": "^2.1.2",
"loggly": "~1.1.0",
"triple-beam": "^1.3.0",
"@types/loggly": "^1.1.30",
"winston-transport": "^4.3.0"
},
"devDependencies": {
"winston": "1.0.x",
"vows": "0.8.0"
"@types/chai": "^4.1.7",
"@types/mocha": "^5.2.6",
"@types/node": "^11.9.4",
"@types/sinon": "^7.0.6",
"chai": "^4.2.0",
"mocha": "^5.2.0",
"nyc": "^13.3.0",
"sinon": "^7.2.3",
"ts-node": "^8.0.2",
"typescript": "^3.3.3",
"winston": "^3.2.0"
},
"main": "./lib/winston-loggly",
"scripts": { "test": "vows --spec" },
"engines": { "node": ">= 0.8.0" }
"main": "./dist/winston-loggly",
"types": "./dist/winston-loggly.d.ts",
"scripts": {
"build": "tsc",
"test": "mocha -r ts-node/register test/**/*.ts --report spec"
},
"engines": {
"node": ">= 0.8.0"
}
}
Loading