-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b1a5069
commit ba29899
Showing
5 changed files
with
27 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
### 3.0.1 | ||
|
||
Add `name` to .d.ts definition | ||
|
||
### 3.0.0 | ||
Move aws-sdk into devDependencies | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/// <reference path="../typescript/winston-cloudwatch.d.ts" /> | ||
|
||
import WinstonCloudwatch from "../typescript/winston-cloudwatch" | ||
|
||
const winston = require('winston'), | ||
WinstonCloudWatch = require('../index') | ||
|
||
const me = winston.add(new WinstonCloudwatch({ | ||
name: 'using-kthxbye', | ||
logGroupName: 'testing', | ||
logStreamName: 'another', | ||
awsRegion: 'us-east-1' | ||
})) | ||
|
||
winston.error('1') | ||
|
||
// flushes the logs and clears setInterval | ||
let transport = me.transports.find(t => t.name === 'using-kthxbye') | ||
transport.kthxbye(() => console.log('bye')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,8 @@ declare namespace WinstonCloudwatch { | |
export type LogObject = winston.LogEntry; | ||
|
||
export interface CloudwatchTransportOptions { | ||
cloudWatchLogs?: CloudWatchLogs, | ||
name: string; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
lazywithclass
Author
Owner
|
||
cloudWatchLogs?: CloudWatchLogs; | ||
level?: string; | ||
ensureLogGroup?: boolean; | ||
logGroupName?: string | (() => string); | ||
|
What is name used for?
It doesn't seem to be used in index.js, is it a required value?