Parametrize the logging pattern to use 54/78054/4
authorMichel Peterson <michel@redhat.com>
Thu, 22 Nov 2018 14:44:57 +0000 (16:44 +0200)
committerMichel Peterson <michel@redhat.com>
Tue, 27 Nov 2018 15:00:23 +0000 (17:00 +0200)
commita469ad6b5bd72bdd4fca39f1b87149d622d1975f
treebb7b7a4543f847cb94136c075b08532cf4ac4a8b
parentea7493afc51b0e5b5fb0ea9cbd9e53503c67583e
Parametrize the logging pattern to use

Currently the packaging of opendaylight is being done with the current
opendaylight default. This default does not always suits the needs of
every deployment and it is good to have this configurable.

This patch adds a `log_pattern` configuration that allows to specify the
logging pattern that will be used. At the same time, it also defines a
default that is non dependant on PaxOsgi on being enabled [1]. The new
default removes the '%X{bundle.id} - %X{bundle.name} -
%X{bundle.version}' bits that are PaxOsgin related, and to compensate
for that information removed it adds more context to the class name and
expands the clipping of the column to 60 characters.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1650576

Change-Id: I923cd372c71ba5c04a27f6d4478ca7c511c14d2d
Signed-off-by: Michel Peterson <michel@redhat.com>
README.markdown
manifests/config.pp
manifests/init.pp
manifests/params.pp
spec/acceptance/class_spec.rb
spec/classes/opendaylight_spec.rb
spec/spec_helper.rb
spec/spec_helper_acceptance.rb