1.1.4 • Published 7 years ago
@cladikzone/logger-module v1.1.4
Logger Module
This is a common logger module which supports Aws cloudwatch and winston log features.
Usage
import * as oxStreet from '@cladikzone/logger-module';
const factory = new oxStreet.LoggerFactory({
aws: {
accessKeyId: '...',
secretAccessKey: '...',
region: '...',
},
transports: [
new oxStreet.transports.Console(),
new oxStreet.transports.File({ filename: './logs/error.log', level: 'error' }),
new oxStreet.transports.File({ filename: './logs/audit.log', level: 'audit' }),
],
});
const audit = factory.create({
logGroupName: 'PRODUCT_SERVICE', // Required
logStreamName: 'stream-one',
level: 'audit', // Required
streamAsLevel: true, // If this is true, your 'logStreamName' parameter will be ignored and the 'level' will be used as the stream name.
});
audit('Something');
audit('Something very critical');
...1.1.4
7 years ago
1.1.3
7 years ago
1.1.2
7 years ago
1.1.1
7 years ago
1.1.0
7 years ago
1.0.16
7 years ago
1.0.15
7 years ago
1.0.14
7 years ago
1.0.13
7 years ago
1.0.12
7 years ago
1.0.11
7 years ago
1.0.10
7 years ago
1.0.9
7 years ago
1.0.8
7 years ago
1.0.7
7 years ago
1.0.6
7 years ago
1.0.5
7 years ago
1.0.4
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago