Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
CoMISo
Base
Commits
c133e45f
Commit
c133e45f
authored
5 years ago
by
Martin Marinov
Browse files
Options
Downloads
Patches
Plain Diff
Add Debug::Config::console() and logfile(). Fix formatting.
parent
dd1c8d9d
No related branches found
No related tags found
1 merge request
!10
Merge from ReForm
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Debug/DebConfig.hh
+21
-14
21 additions, 14 deletions
Debug/DebConfig.hh
with
21 additions
and
14 deletions
Debug/DebConfig.hh
+
21
−
14
View file @
c133e45f
// (C) Copyright 20
19
by Autodesk, Inc.
// (C) Copyright 20
20
by Autodesk, Inc.
#ifndef BASE_DEBCONFIG_HH_INCLUDED
#define BASE_DEBCONFIG_HH_INCLUDED
...
...
@@ -7,7 +7,8 @@
#include
<Base/Config/BaseDefines.hh>
#include
<string>
namespace
Debug
{
namespace
Debug
{
void
print_char_to_cerr
(
const
char
_c
);
//!< print a char to cerr
...
...
@@ -38,9 +39,15 @@ public:
//! The deb out log filename, nullptr disables the debug output log file.
const
char
*
log_filename
=
nullptr
;
//! Get if the log file output is enabled
bool
logfile
()
const
{
return
log_filename
!=
nullptr
;
}
//! Function to deb out on the console, nullptr if output disabled.
print_function
console_print
=
print_char_to_cerr
;
//! Get if the console
bool
console
()
const
{
return
console_print
!=
nullptr
;
}
public
:
//! The output level for the given filename and function.
int
custom_level
(
const
char
*
const
_flnm
,
const
char
*
const
_fnct
)
const
;
...
...
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