New Features
The options object passed to the LoggingWinston
constructor can now have prefix
and labels
properties.
If the prefix
string property is specified, its value will be prepended to all logs.
For example, if prefix: 'main'
is used, then logs will look as follows:
<timestamp> [main] <log message>
If the labels
property is specified, which is an object where the value of each key is a string, those labels will be applied to each log message.
Commits
- Update @google-cloud/common to the latest version 🚀 (#61)
cf7373b
- chore(package): update @types/is to version 0.0.19 (#63)
5ceca73
- chore: one more workaround for repo-tools EPERM (#65)
9a22a1e
- chore: workaround for repo-tools EPERM (#64)
597061a
- chore(package): update @types/mocha to version 5.0.0 (#62)
1d4391a
- chore: setup nighty build in CircleCI (#60)
4f55583
- Upgrade repo-tools and regenerate scaffolding. (#59)
ca04025
- chore(package): upgrade logging dep (#58)
fd3582b
- chore(package): update proxyquire to version 2.0.0 (#55)
d8b1d4c
- chore: change
label
toprefix
(#53)d0eae35
- chore: removing node7 job from CircleCI (#51)
b3eed8f
- chore: add install tests for the label[s] options (#50)
3ab6e86
- feature: allow specifying default labels in the constructor (#46)
0e8ecff