Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Core Modules
dune-common
Commits
fad66c89
Commit
fad66c89
authored
18 years ago
by
Christian Engwer
Browse files
Options
Downloads
Patches
Plain Diff
set MINIMAL_DEBUG_LEVEL via configure parameter
[[Imported from SVN: r4676]]
parent
2c1ef361
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
common/stdstreams.cc
+1
-1
1 addition, 1 deletion
common/stdstreams.cc
common/stdstreams.hh
+5
-1
5 additions, 1 deletion
common/stdstreams.hh
m4/dune_all.m4
+1
-0
1 addition, 0 deletions
m4/dune_all.m4
m4/dune_streams.m4
+44
-0
44 additions, 0 deletions
m4/dune_streams.m4
with
51 additions
and
2 deletions
common/stdstreams.cc
+
1
−
1
View file @
fad66c89
...
...
@@ -2,7 +2,7 @@
// vi: set et ts=4 sw=2 sts=2:
// $Id$
#include
<config.h>
#include
"stdstreams.hh"
namespace
Dune
{
...
...
This diff is collapsed.
Click to expand it.
common/stdstreams.hh
+
5
−
1
View file @
fad66c89
...
...
@@ -22,6 +22,10 @@ namespace Dune {
standard debug streams with level below MINIMAL_DEBUG_LEVEL will
collapse to doing nothing if output is requested.
MINIMAL_DEBUG_LEVEL is set to DUNE_MINIMAL_DEBUG_LEVEL, wich is
defined in config.h and can be changed by the configure option
@code --with-minimal-debug-level=[grave|warn|info|verb|vverb] @endcode
For a Dune-Release this should be set to at least 4 so that only
important messages are active. Dune-developers may adapt this
setting to their debugging needs locally
...
...
@@ -61,7 +65,7 @@ namespace Dune {
* If the level of a stream is bigger than this value
* it will be activated.
*/
static
const
DebugLevel
MINIMAL_DEBUG_LEVEL
=
4
;
static
const
DebugLevel
MINIMAL_DEBUG_LEVEL
=
DUNE_MINIMAL_DEBUG_LEVEL
;
/**
* @brief The level of the very verbose debug stream.
...
...
This diff is collapsed.
Click to expand it.
m4/dune_all.m4
+
1
−
0
View file @
fad66c89
...
...
@@ -94,6 +94,7 @@ AC_SUBST(DUNEWEBDIR, $with_duneweb)
dnl check all components
DUNE_MODULE_DEPENDENCIES($@)
AC_REQUIRE([DUNE_SET_MINIMAL_DEBUG_LEVEL])
AC_REQUIRE([DUNE_PATH_XDR])
AC_REQUIRE([DUNE_GRID_DIMENSION])
AC_REQUIRE([DUNE_PATH_GRAPE])
...
...
This diff is collapsed.
Click to expand it.
m4/dune_streams.m4
0 → 100644
+
44
−
0
View file @
fad66c89
# $Id: dune_deprecated.m4 1114 2004-11-17 14:00:06Z christi $
# Set the minimal verbosity level. All stream with a level below will
# get removed by the optimizer.
AC_DEFUN([DUNE_SET_MINIMAL_DEBUG_LEVEL],[
# VERY_VERBOSE_DEBUG_LEVEL = 1;
# VERBOSE_DEBUG_LEVEL = 2;
# INFO_DEBUG_LEVEL = 3;
# WARN_DEBUG_LEVEL = 4;
# GRAVE_DEBUG_LEVEL = 5;
AC_ARG_WITH(minimal-debug-level,
AC_HELP_STRING([--with-minimal-debug-level=[grave|warn|info|verb|vverb]],
[set the MINIMAL_DEBUG_LEVEL. Standard debug streams with level below
MINIMAL_DEBUG_LEVEL will collapse to doing nothing if output is
requested. (default=warn)]
)
)
MINIMAL_DEBUG_LEVEL=4
case "$with_psurface" in
grave)
MINIMAL_DEBUG_LEVEL=5
;;
warn)
MINIMAL_DEBUG_LEVEL=4
;;
info)
MINIMAL_DEBUG_LEVEL=3
;;
verb)
MINIMAL_DEBUG_LEVEL=2
;;
vverb)
MINIMAL_DEBUG_LEVEL=1
;;
esac
AC_DEFINE_UNQUOTED([DUNE_MINIMAL_DEBUG_LEVEL], $MINIMAL_DEBUG_LEVEL,
[Standard debug streams with a level below will collapse to doing nothing])
])
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment