[genivi-dlt] Issue with syslogs and logging interface like DLT_LOG, dlt_log()

amber bhardwaj amber.bhardwaj10 at gmail.com
Fri Feb 3 23:42:59 EST 2017


---------- Forwarded message ----------
From: "amber bhardwaj" <amber.bhardwaj10 at gmail.com>
Date: 03-Feb-2017 3:23 PM
Subject: Re: genivi-diagnostic-log-and-trace Digest, Vol 52, Issue 2
To: <genivi-diagnostic-log-and-trace at lists.genivi.org>
Cc:

​​
Hi Christoph,

Thanks for your reply.

I tried to many things to redirects the log but not able to do. I also
don't know whom to discussed so i have few queries; can you please help me
out :

               1. Transferring syslogs to dlt-system is an official issue?
I mean to say that any task or bug id is defined for this issue in dlt
public JIRA
<https://at.projects.genivi.org/jira/projects/DLT/issues/DLT-1?filter=allopenissueshttps://at.projects.genivi.org/jira/projects/DLT/issues/DLT-1?filter=allopenissues>;
if it is a bug ?

               2. I am using macro interface *DLT_LOG()* and API interface
*dlt_log()* to store the logs. But when i change the log level through
*dlt_log_set_level()* then i am only able to                        filter
logs generated through *dlt_log()*. I am not able to filter logs which are
generated through *DLT_LOG()* macro interface.

               3. If i am logging via API interface using *dlt_log()* then
i am not able to see logs in *dlt_viewer* but if i use *DLT_LOG()* macro
interface for my logging then i can see logs in
*dlt_viewer*. So i have a doubt here that *dlt_log_set_level()* can only
filter the logs which are generated via *dlt_log()* and the macro interface
*DLT_LOG()* is only                                dedicated to *dlt_viewer*
and you can't filter logs generated via macro interface.

If i am wrong somewhere then please guide me.

Best Regards,
Amber Bhardwaj






On Fri, Feb 3, 2017 at 1:30 AM, <genivi-diagnostic-log-and-
trace-request at lists.genivi.org> wrote:

> Send genivi-diagnostic-log-and-trace mailing list submissions to
>         genivi-diagnostic-log-and-trace at lists.genivi.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.genivi.org/mailman/listinfo/genivi-diagnostic-
> log-and-trace
>
> or, via email, send a message with subject or body 'help' to
>         genivi-diagnostic-log-and-trace-request at lists.genivi.org
>
> You can reach the person managing the list at
>         genivi-diagnostic-log-and-trace-owner at lists.genivi.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of genivi-diagnostic-log-and-trace digest..."
>
>
> Today's Topics:
>
>    1. Regarding dlt_viewer -not getting syslogs in dlt-viewer
>       (amber bhardwaj)
>    2. Re: Regarding dlt_viewer -not getting syslogs in dlt-viewer
>       (Lipka, Christoph (ADITJ/SWG))
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 2 Feb 2017 10:18:50 +0530
> From: amber bhardwaj <amber.bhardwaj10 at gmail.com>
> To: genivi-diagnostic-log-and-trace at lists.genivi.org
> Subject: [genivi-dlt] Regarding dlt_viewer -not getting syslogs in
>         dlt-viewer
> Message-ID:
>         <CAByGjKNXh4d_3GsWhhxeeGCvdo=oYhwm6EQLFUvAJO3CjW+UkA at mail.gm
> ail.com>
> Content-Type: text/plain; charset=UTF-8
>
> Hi All,
>
> I downloaded the code of dlt-daemon from the git (latest version). I have
> successfully build that code and able to run the example code.
>
> But i am facing issues with dlt_viewer while fetching the syslogs.
>
> I have enable the syslogs in dlt-system.conf file
>
> ########################################################################
> # Syslog Adapter configuration
> ########################################################################
>
> # Enable the Syslog Adapter (Default: 0)
> SyslogEnable = 1
>
> # The Context Id of the syslog adapter (Default: SYSL)
> SyslogContextId = SYSL
>
> # The UDP port opened by DLT system mamager to receive system logs
> (Default: 47111)
> SyslogPort = 47111
>
> I have changed the port from 3490 to 47111 and connection from tcp to udp
> to track the syslogs in dlt_viewer but i am not getting any log with the
> context id SYSL. Is there any other configuration required to fetch the
> logs. Please suggest me.
>
> Best Regards,
> Amber Bhardwaj
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 2 Feb 2017 05:55:00 +0000
> From: "Lipka, Christoph (ADITJ/SWG)" <clipka at jp.adit-jv.com>
> To: "genivi-diagnostic-log-and-trace at lists.genivi.org"
>         <genivi-diagnostic-log-and-trace at lists.genivi.org>
> Subject: Re: [genivi-dlt] Regarding dlt_viewer -not getting syslogs in
>         dlt-viewer
> Message-ID:
>         <B63DFC502E5CF24DB70737388130C5910C6C745A at ky0exch01.adit-jv.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Amber,
>
> Actually, you try to reconfigure the connection between DLT Daemon and DLT
> Viewer. This does not work in this way.
> The DLT Daemon opens a TCP connection by default on port 3490. The Viewer
> has to connect to the DLT Daemon. It is not possible to connect the Viewer
> directly to the dlt-system application.
> The dlt-system application as such is a dlt user application, like
> dlt-example-user.
>
> The message flow is like this:
>
> <syslog()> --?--> <dlt-system> ----> <dlt-daemon> ----> <dlt-viewer>
>
> I tried to setup the same on a Ubuntu 12.04, but nothing is received at
> dlt-system. I am actually unsure what need to be done here. There is a bug
> in related code as well. See:  https://at.projects.genivi.org
> /jira/projects/DLT/issues/DLT-1?filter=allopenissues
>
> Looks like you have the same problem, that no message reaches dlt-system...
>
> Maybe someone, who uses this part can give some more hints how to actually
> receive syslog information in dlt-system.
>
> Best regards
>
> Christoph Lipka
> Software Group (ADITJ/SWG)
>
> Tel. +81-(0)566 61-5124
>
>
> -----Original Message-----
> From: genivi-diagnostic-log-and-trace [mailto:genivi-diagnostic-log-
> and-trace-bounces at lists.genivi.org] On Behalf Of amber bhardwaj
> Sent: Thursday, February 02, 2017 1:49 PM
> To: genivi-diagnostic-log-and-trace at lists.genivi.org
> Subject: [genivi-dlt] Regarding dlt_viewer -not getting syslogs in
> dlt-viewer
>
> Hi All,
>
> I downloaded the code of dlt-daemon from the git (latest version). I have
> successfully build that code and able to run the example code.
>
> But i am facing issues with dlt_viewer while fetching the syslogs.
>
> I have enable the syslogs in dlt-system.conf file
>
> ########################################################################
> # Syslog Adapter configuration
> ########################################################################
>
> # Enable the Syslog Adapter (Default: 0) SyslogEnable = 1
>
> # The Context Id of the syslog adapter (Default: SYSL) SyslogContextId =
> SYSL
>
> # The UDP port opened by DLT system mamager to receive system logs
> (Default: 47111)
> SyslogPort = 47111
>
> I have changed the port from 3490 to 47111 and connection from tcp to udp
> to track the syslogs in dlt_viewer but i am not getting any log with the
> context id SYSL. Is there any other configuration required to fetch the
> logs. Please suggest me.
>
> Best Regards,
> Amber Bhardwaj
> _______________________________________________
> genivi-diagnostic-log-and-trace mailing list
> genivi-diagnostic-log-and-trace at lists.genivi.org
> http://lists.genivi.org/mailman/listinfo/genivi-diagnostic-log-and-trace
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> genivi-diagnostic-log-and-trace mailing list
> genivi-diagnostic-log-and-trace at lists.genivi.org
> http://lists.genivi.org/mailman/listinfo/genivi-diagnostic-log-and-trace
>
> ------------------------------
>
> End of genivi-diagnostic-log-and-trace Digest, Vol 52, Issue 2
> **************************************************************
>



-- 
Thanks and Regards,

Amber Bhardwaj


*Work:* +91-89 51 188468
*Email:* amber.bhardwaj10 at gmail.com
*Catch me on : *LinkedIn <https://in.linkedin.com/in/amberbhardwaj>



More information about the genivi-diagnostic-log-and-trace mailing list