Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NodeBack
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TE-TEAM-2
NodeBack
Merge requests
!21
confi console.log
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
confi console.log
us45log
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
P0033
requested to merge
us45log
into
master
4 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
👍
0
👎
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
3bb8c5d1
1 commit,
4 years ago
1 file
+
2
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
winston_config.js
+
2
−
1
Options
@@ -4,7 +4,8 @@ const { createLogger, format, transports } = require('winston');
const
{
combine
,
splat
,
timestamp
,
printf
}
=
format
;
const
myFormat
=
printf
(
({
level
,
message
,
timestamp
,
...
metadata
})
=>
{
let
msg
=
`
${
timestamp
}
[
${
level
}
] :
${
message
}
`
let
msg
=
`
${
timestamp
}
[
${
level
}
] :
${
message
}
`
console
.
log
(
"
suoritetaanko myformat ikinä
"
)
if
(
metadata
)
{
msg
+=
JSON
.
stringify
(
metadata
)
}
Loading