Is there a way to disable the log color so that the logger doesn't insert control codes for color into the output stream.
Hi,
On 10.03.2015, at 02:12, teclis High Elf <teclis.high.elf@gmail.com> wrote:
Is there a way to disable the log color so that the logger doesn't insert control codes for color into the output stream.
Just remove the color argument from the log statement of the desired client. Matthias.
_______________________________________________ l4-hackers mailing list l4-hackers@os.inf.tu-dresden.de http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers
thanks Matthias, It still is inserting the control codes for white: \033[37m This is my cfg file: L4.default_loader:startv( { caps = { log = L4.Env.log:m("rws"), }, log = {"mydriver"}, }, "rom/mydriver"); and it still inserted the control code for white. I tried: log = {"mydriver", " "} and it inserted the control code for no color On Tue, Mar 10, 2015 at 3:36 AM, Matthias Lange < matthias.lange@kernkonzept.com> wrote:
Hi,
On 10.03.2015, at 02:12, teclis High Elf <teclis.high.elf@gmail.com> wrote:
Is there a way to disable the log color so that the logger doesn't insert control codes for color into the output stream.
Just remove the color argument from the log statement of the desired client.
Matthias.
_______________________________________________ l4-hackers mailing list l4-hackers@os.inf.tu-dresden.de http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers
Hi, $ fgrep -r "\033[37m" * src/l4/pkg/plr/server/src/log:#define WHITE "\033[37m" so changing WHITE to "" should do the job. Martin Am 10.03.2015 um 16:07 schrieb teclis High Elf:
thanks Matthias,
It still is inserting the control codes for white: \033[37m
This is my cfg file:
L4.default_loader:startv( { caps = { log = L4.Env.log:m("rws"), }, log = {"mydriver"}, }, "rom/mydriver");
and it still inserted the control code for white.
I tried:
log = {"mydriver", " "}
and it inserted the control code for no color
On Tue, Mar 10, 2015 at 3:36 AM, Matthias Lange <matthias.lange@kernkonzept.com <mailto:matthias.lange@kernkonzept.com>> wrote:
Hi,
> On 10.03.2015, at 02:12, teclis High Elf <teclis.high.elf@gmail.com <mailto:teclis.high.elf@gmail.com>> wrote: > > Is there a way to disable the log color so that the logger doesn't insert control codes for color into the output stream.
Just remove the color argument from the log statement of the desired client.
Matthias.
> _______________________________________________ > l4-hackers mailing list > l4-hackers@os.inf.tu-dresden.de <mailto:l4-hackers@os.inf.tu-dresden.de> > http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers
_______________________________________________ l4-hackers mailing list l4-hackers@os.inf.tu-dresden.de http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers
On Tue Mar 10, 2015 at 11:07:59 -0400, teclis High Elf wrote:
thanks Matthias,
It still is inserting the control codes for white: \033[37m
This is my cfg file:
L4.default_loader:startv( { caps = { log = L4.Env.log:m("rws"),
}, log = {"mydriver"}, }, "rom/mydriver");
and it still inserted the control code for white.
I tried:
log = {"mydriver", " "}
and it inserted the control code for no color
Indeed. Just change moe/server/src/log.cc as you need it. Adam -- Adam adam@os.inf.tu-dresden.de Lackorzynski http://os.inf.tu-dresden.de/~adam/
participants (4)
-
Adam Lackorzynski -
Martin Schröder -
Matthias Lange -
teclis High Elf