Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
VILLASweb-backend-node
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ACS
Public
VILLASframework
VILLASweb-backend-node
Merge requests
!5
Resolve "Add log level config option"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Add log level config option"
14-add-log-level-config-option
into
develop
Overview
0
Commits
6
Pipelines
0
Changes
1
Merged
Markus Grigull
requested to merge
14-add-log-level-config-option
into
develop
7 years ago
Overview
0
Commits
6
Pipelines
0
Changes
1
Expand
Closes
#6 (closed)
,
#7 (closed)
,
#10 (closed)
,
#14 (closed)
and
#15 (closed)
Edited
7 years ago
by
Markus Grigull
0
0
Merge request reports
Viewing commit
f7a753dc
Prev
Next
Show latest version
1 file
+
7
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
f7a753dc
Add proper mongoose logging
· f7a753dc
Markus Grigull
authored
7 years ago
server.js
+
7
−
0
Options
@@ -50,6 +50,13 @@ var config = require('./config')[app.get('env')];
// configure logger
if
(
config
.
logLevel
)
{
logger
.
transports
.
console
.
level
=
config
.
logLevel
;
// enable debug output for verbose
if
(
config
.
logLevel
==
'
verbose
'
)
{
mongoose
.
set
(
'
debug
'
,
function
(
coll
,
method
,
query
,
doc
)
{
logger
.
log
(
'
verbose
'
,
'
[Mongoose]
'
,
{
coll
,
method
,
query
,
doc
});
});
}
}
if
(
config
.
logFile
)
{
Loading