Project

General

Profile

Actions

Task #9942

closed

Change the way to generate the logback.xml in smartgears container

Added by Luca Frosini almost 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
System Application
Target version:
Start date:
Oct 12, 2017
Due date:
% Done:

100%

Estimated time:
Infrastructure:
Development, Pre-Production, Production

Description

I think a template in needed.
The section using different files for access and accounting must disappears because causes a lower level logging in ghn.log.

Moreover, the possibility to change the log level for a certain package shoul be supported as argument when running the playbook.


Related issues

Related to D4Science Infrastructure - Task #9576: provision the smartgear logback configuration starting from a templateClosedAndrea Dell'AmicoSep 02, 2017

Actions
Actions #1

Updated by Andrea Dell'Amico almost 8 years ago

Luca Frosini wrote:

I think a template in needed.

It's a template already, you can find it in library/roles/smartgears/smartgears/templates/

The section using different files for access and accounting must disappears because causes a lower level logging in ghn.log.

I don't understand. Is it a bug on the logback configuration or in how it's used inside one of the libraries?
In the first case, feel free to propose a fix for the template. Otherwise we should better fix smartgears.

Moreover, the possibility to change the log level for a certain package shoul be supported as argument when running the playbook.

We can do it with variables (and so when running the playbook, too. But I prefer a written variable, so that we can know the log level from inspecting the playbook.
Right now only a global log level change is supported, but we can have a different variable for each logger, all set by default to the same value.

Actions #2

Updated by Luca Frosini almost 8 years ago

Andrea Dell'Amico wrote:

Luca Frosini wrote:

I think a template in needed.

It's a template already, you can find it in library/roles/smartgears/smartgears/templates/

Ok I found it

The section using different files for access and accounting must disappears because causes a lower level logging in ghn.log.

I don't understand. Is it a bug on the logback configuration or in how it's used inside one of the libraries?
In the first case, feel free to propose a fix for the template. Otherwise we should better fix smartgears.

I don't think the issue is on smartgears. I think the problem has to be search in the configuration.

Moreover, the possibility to change the log level for a certain package shoul be supported as argument when running the playbook.

We can do it with variables (and so when running the playbook, too. But I prefer a written variable, so that we can know the log level from inspecting the playbook.
Right now only a global log level change is supported, but we can have a different variable for each logger, all set by default to the same value.

Yes we should allow to set different log level(s) for different package(s). The package(s) and the log level can be specified in the playbook as you suggest. Infact we can also decide to set different level in the different playbook for dev and prod.

Actions #3

Updated by Andrea Dell'Amico almost 8 years ago

@luca.frosini@isti.cnr.it @lucio.lelii@isti.cnr.it can you come up with a refactored logback.xml template, starting from the one in the ansible repository?

Actions #4

Updated by Luca Frosini almost 8 years ago

@andrea.dellamico@isti.cnr.it I'll check it asap

Actions #5

Updated by Andrea Dell'Amico almost 8 years ago

  • Assignee changed from _InfraScience Systems Engineer to Luca Frosini

Any news on this?

Actions #6

Updated by Andrea Dell'Amico almost 8 years ago

  • Related to Task #9576: provision the smartgear logback configuration starting from a template added
Actions #8

Updated by Luca Frosini almost 8 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 8.91 MB)