Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [lttng-dev] Using lttng for traces and (in-process) logging
@ 2018-08-06 22:42 Norbert Lange
  2018-08-10 16:23 ` Jérémie Galarneau
  0 siblings, 1 reply; 3+ messages in thread
From: Norbert Lange @ 2018-08-06 22:42 UTC (permalink / raw)


Hello,

since lttng would make for a decent logger, is it possible to create a
own tracepoint provider and channel and acess it in the very same
process thats traced?
the log entries would need to be accessible directly to support some
existing schemes for manipulating (interpolating to a different
clock-source), forwarding and storing them.

eg. I would like to access the logs and other traces with the normal
lttng tools, but also be able to get a copy of the logs directly from
the process generating them.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [lttng-dev] Using lttng for traces and (in-process) logging
  2018-08-06 22:42 [lttng-dev] Using lttng for traces and (in-process) logging Norbert Lange
@ 2018-08-10 16:23 ` Jérémie Galarneau
  2018-08-10 20:16   ` Norbert Lange
  0 siblings, 1 reply; 3+ messages in thread
From: Jérémie Galarneau @ 2018-08-10 16:23 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1143 bytes --]

Hi,

I can see how this could be approximated by configuring a "live" tracing
session (i.e. you would see the log as they are produced), but there is
no way, currently, to serialize the events to stdout/stderr from the
application itself.

Maybe I misunderstood your question. Let me know.

Jérémie

On 6 August 2018 at 18:42, Norbert Lange <nolange79 at gmail.com> wrote:
> Hello,
>
> since lttng would make for a decent logger, is it possible to create a
> own tracepoint provider and channel and acess it in the very same
> process thats traced?
> the log entries would need to be accessible directly to support some
> existing schemes for manipulating (interpolating to a different
> clock-source), forwarding and storing them.
>
> eg. I would like to access the logs and other traces with the normal
> lttng tools, but also be able to get a copy of the logs directly from
> the process generating them.
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev



-- 
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [lttng-dev] Using lttng for traces and (in-process) logging
  2018-08-10 16:23 ` Jérémie Galarneau
@ 2018-08-10 20:16   ` Norbert Lange
  0 siblings, 0 replies; 3+ messages in thread
From: Norbert Lange @ 2018-08-10 20:16 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1624 bytes --]

I think you understood, I would want to use lttng for tracing as-is,
but have another "consumer daemon" reading the buffer from the process
and piping (the filtered log-) events back.
After spending some more time, I think lttng has too big of a scope
(system level tracing) to add this per-process feature painless.
Am Fr., 10. Aug. 2018 um 18:24 Uhr schrieb Jérémie Galarneau
<jeremie.galarneau at efficios.com>:
>
> Hi,
>
> I can see how this could be approximated by configuring a "live" tracing
> session (i.e. you would see the log as they are produced), but there is
> no way, currently, to serialize the events to stdout/stderr from the
> application itself.
>
> Maybe I misunderstood your question. Let me know.
>
> Jérémie
>
> On 6 August 2018 at 18:42, Norbert Lange <nolange79 at gmail.com> wrote:
> > Hello,
> >
> > since lttng would make for a decent logger, is it possible to create a
> > own tracepoint provider and channel and acess it in the very same
> > process thats traced?
> > the log entries would need to be accessible directly to support some
> > existing schemes for manipulating (interpolating to a different
> > clock-source), forwarding and storing them.
> >
> > eg. I would like to access the logs and other traces with the normal
> > lttng tools, but also be able to get a copy of the logs directly from
> > the process generating them.
> > _______________________________________________
> > lttng-dev mailing list
> > lttng-dev at lists.lttng.org
> > https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>
>
>
> --
> Jérémie Galarneau
> EfficiOS Inc.
> http://www.efficios.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-08-10 20:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-06 22:42 [lttng-dev] Using lttng for traces and (in-process) logging Norbert Lange
2018-08-10 16:23 ` Jérémie Galarneau
2018-08-10 20:16   ` Norbert Lange

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox