[genivi-dlt] Fwd: Persistent log-levels

Lipka, Christoph (ADITJ/SWG) clipka at jp.adit-jv.com
Tue Nov 29 19:37:21 EST 2016


Hi,

Good to hear that it works for you. And yes, you are right, documentation need to be improved.

To answer your question, there is nothing to change on application side. Beware just one thing: This configuration is read by DLT Daemon and a message is send to the application to set the log level accordingly (default is INFO). If you start your application before the daemon is started, application will use info until the log level is updated. To overcome this problem, you can set an environment variable (DLT_INITIAL_LOG_LEVEL). 

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 mailman1.genivi.org] On Behalf Of Dominik Holland
Sent: Wednesday, November 30, 2016 12:34 AM
To: Lipka, Christoph (ADITJ/SWG); genivi-diagnostic-log-and-trace at mailman1.genivi.org
Subject: Re: [genivi-dlt] Fwd: Persistent log-levels

Hi Christoph,

thx for your answer!

That was exactly what i was looking for and it works like a charm.

The only thing which could be improved on this is the documentation, as this feature is only documented with one sentence in the dlt.conf man-page.

I guess for developers like me, it would be also interesting to know, how this configuration setup works and whether an application has to adapt to it (It seems it doesn't, that's good).

Thx
 Dominik

Am 11/29/2016 um 03:36 PM schrieb Jeremiah Foster:
> FYI
> 
> ---------- Forwarded message ----------
> From: *Lipka, Christoph (ADITJ/SWG)* <clipka at jp.adit-jv.com 
> <mailto:clipka at jp.adit-jv.com>>
> Date: Sun, Nov 27, 2016 at 8:04 PM
> Subject: Re: [genivi-dlt] Persistent log-levels
> To: "genivi-diagnostic-log-and-trace at mailman1.genivi.org
> <mailto:genivi-diagnostic-log-and-trace at mailman1.genivi.org>"
> <genivi-diagnostic-log-and-trace at mailman1.genivi.org
> <mailto:genivi-diagnostic-log-and-trace at mailman1.genivi.org>>
> 
> 
> Hi Dominik,
> 
> There is a possibility to store a runtime configuration which is used 
> by the DLT Daemon on startup. When Viewer is connected to DLT Daemon, 
> just do a right click on the ECU entry inside the project tree and 
> click "Store Config" after you adapted the log levels to your needs.
> 
> In dlt.conf, you can configure where this runtime configuration is stored:
> 
> # Directory where to store the persistant configuration (Default: 
> /tmp) PersistanceStoragePath = /your/persistent/writable/location
> 
> After storing this configuration, you should find two configuration 
> files containing your desired configuration:
> - /tmp/dlt-runtime-application.cfg
> - /tmp/dlt-runtime-context.cfg
> 
> Please let me know, if this meets your needs. If you have any 
> questions, please let me know.
> 
> Best regards
> 
> Christoph Lipka
> Software Group (ADITJ/SWG)
> 
> Tel. +81-(0)566 61-5124 <tel:%2B81-%280%29566%2061-5124>
> 
> 
> -----Original Message-----
> From: genivi-diagnostic-log-and-trace
> [mailto:genivi-diagnostic-log-and-trace-bounces at mailman1.genivi.org
> <mailto:genivi-diagnostic-log-and-trace-bounces at mailman1.genivi.org>] 
> On Behalf Of Dominik Holland
> Sent: Friday, November 25, 2016 11:04 PM
> To: genivi-diagnostic-log-and-trace at mailman1.genivi.org
> <mailto:genivi-diagnostic-log-and-trace at mailman1.genivi.org>
> Subject: [genivi-dlt] Persistent log-levels
> 
> Hi,
> 
> i'm wondering whether something like persistent logging rules exist in DLT ?
> 
> I'm thinking about the following use-case:
> 
> An OEM runs DLT in one of it's production systems. There is a bug in 
> the system which only occurs from time to time on some of the systems 
> and the problem couldn't be determined with the normal logging capabilities.
> For this it would be great if a dlt-viewer could be connected to the 
> system and changing the log-level of some specific sub-systems to show 
> more verbose logging messages.
> This is already possible with the current state, but once the system 
> is rebooted, the default log-levels are setup again and it wouldn't be 
> possible to watch the problem over several days/weeks.
> 
> Isn't this a usecase DLT should be capable of ? In the end i guess 
> every OEM develops their own custom system on top for generating error 
> reports, but wouldn't it make sense to solve this once and for all in DLT ?
> If DLT already support this by a plugin or a hidden setting, i'm more 
> than happy if someone could give me a pointer.
> 
> Thx
> 
>  Dominik
> 
> 
> --
> Dominik Holland
> SENIOR SOFTWARE ENGINEER
> 
> Pelagicore AG
> Balanstr. 55, 81541 Munich, Germany
> +49 (0)171 760 25 96 <tel:%2B49%20%280%29171%20760%2025%2096>
> dominik.holland at pelagicore.com <mailto:dominik.holland at pelagicore.com>
> www.pelagicore.com <http://www.pelagicore.com>
> 
> _______________________________________________
> genivi-diagnostic-log-and-trace mailing list 
> genivi-diagnostic-log-and-trace at mailman1.genivi.org
> <mailto:genivi-diagnostic-log-and-trace at mailman1.genivi.org>
> http://lists.genivi.org/cgi-bin/mailman/listinfo/genivi-diagnostic-log
> -and-trace 
> <http://lists.genivi.org/cgi-bin/mailman/listinfo/genivi-diagnostic-lo
> g-and-trace> _______________________________________________
> genivi-diagnostic-log-and-trace mailing list 
> genivi-diagnostic-log-and-trace at mailman1.genivi.org
> <mailto:genivi-diagnostic-log-and-trace at mailman1.genivi.org>
> http://lists.genivi.org/cgi-bin/mailman/listinfo/genivi-diagnostic-log
> -and-trace 
> <http://lists.genivi.org/cgi-bin/mailman/listinfo/genivi-diagnostic-lo
> g-and-trace>
> 
> 
> 
> --
> Jeremiah C. Foster
> GENIVI COMMUNITY MANAGER
> 
> Pelagicore AB
> Ekelundsgatan 4, 6tr, SE-411 18
> Gothenburg, Sweden
> M: +1.860.772.9242
> jeremiah.foster at pelagicore.com <mailto:jeremiah.foster at pelagicore.com>
> 
> 

--
Dominik Holland
SENIOR SOFTWARE ENGINEER

Pelagicore AG
Balanstr. 55, 81541 Munich, Germany
+49 (0)171 760 25 96
dominik.holland at pelagicore.com
www.pelagicore.com

_______________________________________________
genivi-diagnostic-log-and-trace mailing list genivi-diagnostic-log-and-trace at mailman1.genivi.org
http://lists.genivi.org/cgi-bin/mailman/listinfo/genivi-diagnostic-log-and-trace


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