Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
José Pardo Madera
/
pag_practicas_2025
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
28fcc7e6
authored
Sep 25, 2025
by
José Pardo Madera
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Logger ahora solo imprime por la pantalla y no por la terminal
parent
2574e379
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
log.h
log.h
View file @
28fcc7e6
...
@@ -4,7 +4,6 @@
...
@@ -4,7 +4,6 @@
#include <iostream>
#include <iostream>
namespace
PAG
{
namespace
PAG
{
// Clase que imprime a stderr y a un std::string
class
Logger
:
public
std
::
ostream
{
class
Logger
:
public
std
::
ostream
{
public
:
public
:
Logger
()
:
buffer
(),
std
::
ostream
(
&
buffer
)
{};
Logger
()
:
buffer
(),
std
::
ostream
(
&
buffer
)
{};
...
@@ -20,8 +19,8 @@ namespace PAG {
...
@@ -20,8 +19,8 @@ namespace PAG {
std
::
stringstream
inner_full_log
;
std
::
stringstream
inner_full_log
;
public
:
public
:
int
sync
()
override
{
int
sync
()
override
{
std
::
cerr
<<
str
();
//
std::cerr << str();
std
::
cerr
.
flush
();
//
std::cerr.flush();
inner_full_log
<<
str
();
inner_full_log
<<
str
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment