-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add cmake option to disable console logfile #348
Conversation
Codecov Report
@@ Coverage Diff @@
## sdf10 #348 +/- ##
=======================================
Coverage 87.35% 87.35%
=======================================
Files 60 60
Lines 9207 9207
=======================================
Hits 8043 8043
Misses 1164 1164
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable to me. I think this could be documented somewhere, maybe Console.hh
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
w.r.t. discussion in #334
Reviewed 3 of 3 files at r1.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @azeey)
The sdf::Console class logs some messages to a file in ~/.sdformat/sdformat.log by default. This wraps the code in the constructor of the sdf::Console class that opens this file in an `#ifndef` and adds a cmake option `SDFORMAT_DISABLE_CONSOLE_LOGFILE` to easily disable the use of this logfile. Initial approach to gazebosim#334. Signed-off-by: Steve Peters <[email protected]>
Signed-off-by: Steve Peters <[email protected]>
a0c48aa
to
f058a0a
Compare
I've added some documentation in |
The sdf::Console class logs some messages to a file in `~/.sdformat/sdformat.log` by default. This wraps the code in the constructor of the `sdf::Console` class that opens this file in an `#ifndef` and adds a cmake option `SDFORMAT_DISABLE_CONSOLE_LOGFILE` to easily disable the use of this logfile. Initial approach to gazebosim#334. Signed-off-by: Steve Peters <[email protected]>
The sdf::Console class logs some messages to a file in `~/.sdformat/sdformat.log` by default. This wraps the code in the constructor of the `sdf::Console` class that opens this file in an `#ifndef` and adds a cmake option `SDFORMAT_DISABLE_CONSOLE_LOGFILE` to easily disable the use of this logfile. Initial approach to #334. Signed-off-by: Steve Peters <[email protected]>
The sdf::Console class logs some messages to a file in `~/.sdformat/sdformat.log` by default. This wraps the code in the constructor of the `sdf::Console` class that opens this file in an `#ifndef` and adds a cmake option `SDFORMAT_DISABLE_CONSOLE_LOGFILE` to easily disable the use of this logfile. Initial approach to #334. Signed-off-by: Steve Peters <[email protected]>
The
sdf::Console
class logs some messages to a file in ~/.sdformat/sdformat.log by default. This wraps the code in the constructor of thesdf::Console
class that opens this file in an#ifndef
and adds a cmake optionSDFORMAT_DISABLE_CONSOLE_LOGFILE
to easily disable the use of this logfile.Initial approach to #334.