[lttng-dev] Help-lttng-ust-pyhton

Jérémie Galarneau jeremie.galarneau at efficios.com
Thu Nov 12 10:20:00 EST 2015


2015-11-06 17:59 GMT-05:00 Yves Junior Bationo <yves-junior.bationo at polymtl.ca>:
>
> j'ai un souci avec lltngust pour les application python
> Pour l'exemple de la Doc
>         https://lttng.org/docs/#doc-python-application
> j'ai l'erreur:
>         No handlers could be found for logger "hello-logger"
>

Hi Yves,

We try to stick to English on this mailing list so the questions and
answers remain easily searchable.

The example in the docs uses "time" without importing it, I have sent
a Pull Request to address that.
However, addressing the problem you are encountering, where does
"hello-logger" come from?

Can you post the code and versions of the components you are using?

Thanks,
Jérémie


> la commande "lttng list -u -a" me retourne bien la liste des trace point:
>
>         PID: 5228 - Name: python
>       lttng_python:event (loglevel: TRACE_DEBUG_LINE (13)) (type:
> tracepoint)
>       lttng_ust_tracelog:TRACE_DEBUG (loglevel: TRACE_DEBUG (14)) (type:
> tracepoint)
>       lttng_ust_tracelog:TRACE_DEBUG_LINE (loglevel: TRACE_DEBUG_LINE (13))
> (type: tracepoint)
>       lttng_ust_tracelog:TRACE_DEBUG_FUNCTION (loglevel:
> TRACE_DEBUG_FUNCTION (12)) (type: tracepoint)
>       lttng_ust_tracelog:TRACE_DEBUG_UNIT (loglevel: TRACE_DEBUG_UNIT (11))
> (type: tracepoint)
>       lttng_ust_tracelog:TRACE_DEBUG_MODULE (loglevel: TRACE_DEBUG_MODULE
> (10)) (type: tracepoint)
>       lttng_ust_tracelog:TRACE_DEBUG_PROCESS (loglevel: TRACE_DEBUG_PROCESS
> (9)) (type: tracepoint)
>       lttng_ust_tracelog:TRACE_DEBUG_PROGRAM (loglevel: TRACE_DEBUG_PROGRAM
> (8)) (type: tracepoint)
>       lttng_ust_tracelog:TRACE_DEBUG_SYSTEM (loglevel: TRACE_DEBUG_SYSTEM
> (7)) (type: tracepoint)
>       lttng_ust_tracelog:TRACE_INFO (loglevel: TRACE_INFO (6)) (type:
> tracepoint)
>       lttng_ust_tracelog:TRACE_NOTICE (loglevel: TRACE_NOTICE (5)) (type:
> tracepoint)
>       lttng_ust_tracelog:TRACE_WARNING (loglevel: TRACE_WARNING (4)) (type:
> tracepoint)
>       lttng_ust_tracelog:TRACE_ERR (loglevel: TRACE_ERR (3)) (type:
> tracepoint)
>       lttng_ust_tracelog:TRACE_CRIT (loglevel: TRACE_CRIT (2)) (type:
> tracepoint)
>       lttng_ust_tracelog:TRACE_ALERT (loglevel: TRACE_ALERT (1)) (type:
> tracepoint)
>       lttng_ust_tracelog:TRACE_EMERG (loglevel: TRACE_EMERG (0)) (type:
> tracepoint)
>       lttng_ust_tracef:event (loglevel: TRACE_DEBUG (14)) (type: tracepoint)
>       lttng_ust_statedump:end (loglevel: TRACE_DEBUG_LINE (13)) (type:
> tracepoint)
>       lttng_ust_statedump:debug_link (loglevel: TRACE_DEBUG_LINE (13))
> (type: tracepoint)
>       lttng_ust_statedump:build_id (loglevel: TRACE_DEBUG_LINE (13)) (type:
> tracepoint)
>       lttng_ust_statedump:soinfo (loglevel: TRACE_DEBUG_LINE (13)) (type:
> tracepoint)
>       lttng_ust_statedump:start (loglevel: TRACE_DEBUG_LINE (13)) (type:
> tracepoint)
>
> Mais pas de resultats dans le repertoire des evenements lorsque j'active le
> tracage lttng.
>
> Resumé
>         Probleme 1 :No handlers could be found for logger
>                 je croyais que "import lttngust" devait gerer cette
> situation
>
>         Probleme 2: pas de resultats au tracage
> Merci.
>
>
>
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev



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



More information about the lttng-dev mailing list