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
Tobias Leibner
dune-common
Commits
402c183c
Commit
402c183c
authored
20 years ago
by
Thimo Neubauer
Browse files
Options
Downloads
Patches
Plain Diff
Doxygen fixes
[[Imported from SVN: r846]]
parent
f2b8ec8a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
common/debugstream.hh
+10
-2
10 additions, 2 deletions
common/debugstream.hh
common/stdstreams.hh
+10
-13
10 additions, 13 deletions
common/stdstreams.hh
with
20 additions
and
15 deletions
common/debugstream.hh
+
10
−
2
View file @
402c183c
...
...
@@ -77,8 +77,8 @@ namespace Dune {
Dune::DebugStream<APPL_GRAPHICS, APPL_DEBUG_MASK, APPL_ACTIVE_MASK, Dune::common_bits> graphout;
\endcode
Applications that wish to redirect the
standard streams from
stdstreams.hh through their
private streams
can
use the tie()-mechanism:
Applications that wish to redirect the
\ref StdStreams through their
private streams
may
use the tie()-mechanism:
\code
// initialize streams like above
...
...
@@ -92,6 +92,14 @@ namespace Dune {
Keep in mind to untie() a stream before the tied stream is destructed.
An alternative is to attach() an output stream defined by the application:
\code
std::ofstream mylog("application.log");
Dune::dwarn.attach(mylog);
\endcode
*/
//! type for debug levels. Only positive values allowed
...
...
This diff is collapsed.
Click to expand it.
common/stdstreams.hh
+
10
−
13
View file @
402c183c
...
...
@@ -20,25 +20,20 @@ namespace Dune {
*/
/*! \addtogroup DebugOut
/*!
\addtogroup DebugOut
@{
\section Standard Streams
Laber Laber
*/
/*! standard debug streams with level below MINIMAL_DEBUG_LEVEL will
standard debug streams with level below MINIMAL_DEBUG_LEVEL will
collapse to doing nothing if output is requested.
For a Dune-Release this should be set to 5 so that only the grave
warnings and error messages are active. Otherwise, the
Dune-developers will adapt this setting to their debugging needs
locally
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
Keep in mind that libdune has to be recompiled if this value is changed!
*/
static
const
DebugLevel
MINIMAL_DEBUG_LEVEL
=
3
;
static
const
DebugLevel
MINIMAL_DEBUG_LEVEL
=
4
;
typedef
DebugStream
<
1
,
MINIMAL_DEBUG_LEVEL
>
DVVerbType
;
extern
DVVerbType
dvverb
;
...
...
@@ -57,4 +52,6 @@ namespace Dune {
typedef
DebugStream
<
1
>
DErrType
;
extern
DErrType
derr
;
//! }@
}
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