[midPoint] Advanced Logging Configuration

Emil.Militzer at tk.de Emil.Militzer at tk.de
Wed Mar 9 09:23:09 CET 2022


Hello,

i tried many things to convince midpoint.

I added some custom appender in the advance field, this caused an error because midpoint tries to parse it and fails because the default namespace is common-3
<advanced>
<appender class=““ …>
      <hostname></hostname>
</appender>
<advanced>

Afterwards i added changed the namespace to an empty one, this worked but the toString method evaluates the container to something like [appender: null]

Adding my config as an XML encoded text didnt work too.

I now tried to find some xml type where the toStrinng method will just return the text content. The only ohne i found was PolyStringType and i tried to set the type of the containing element:

<advanced xmlns=””>

        <dummyContainer xsi:type="c:PolyStringType">
<appender class=““ …>
      <hostname></hostname>
</appender>
</dummyContainer>
<advanced>

Unfortunately this did not work becaus midPoint seems to loose the type information.

Thats all i tried. Do you have any more ideas?

The longer i work on this issue i have the feeling that this never really worked. I would suggest that midpoint changes the schema of the AdvancedLoggingConfigurationType to accept string values which are written into the config without further validation.


Kind Regards
Emil Militzer
__________________________

[cid:image002.jpg at 01D83397.494B75B0]<https://www.tk.de/>

Techniker Krankenkasse
Headquaters
Bramfelder Straße 140, 22305 Hamburg

Emil Militzer
Systemdevelopment
Tel. 040 - 69 09-33 52
emil.militzer at tk.de<mailto:emil.militzer at tk.de>



Von: midPoint <midpoint-bounces at lists.evolveum.com> Im Auftrag von Pavol Mederly via midPoint
Gesendet: Dienstag, 8. März 2022 18:06
An: midpoint at lists.evolveum.com
Cc: Pavol Mederly <mederly at evolveum.com>
Betreff: Re: [midPoint] Advanced Logging Configuration


Emil,

I am not sure. The source code indicates it should do something, but I am a bit scared about toString() call there.

Maybe just try to put something there... and observe the effect with detailed logging (set com.evolveum.midpoint.common.LoggingConfigurationManager to true). I'd be interested about the result myself. ;)

https://github.com/Evolveum/midpoint/blob/6fba7c8aab97a99eaf59fc71c0b402bd928528e8/infra/common/src/main/java/com/evolveum/midpoint/common/LoggingConfigurationManager.java#L263-L269

--

Pavol Mederly

Software developer

evolveum.com
On 08/03/2022 17:42, Emil.Militzer--- via midPoint wrote:

Hello,



does anybody know how to use the <advanced> tag in the logging configuration? I want to inject some free form stuff into the logging config and the schema suggests that this should be easily possible:



<xsd:complexType name="AdvancedLoggingConfigurationType" mixed="true">

    <xsd:annotation>

        <xsd:documentation>

            Contains free form logging configuration.

        </xsd:documentation>

        <xsd:appinfo>

            <a:container>true</a:container>

        </xsd:appinfo>

    </xsd:annotation>

    <xsd:sequence>

        <xsd:any maxOccurs="unbounded"/>

    </xsd:sequence>

</xsd:complexType>



I just want to add some text in the config. I tried many things which didn’t work but I think i am missing the easy solution here.



Kind Regards
Emil




_______________________________________________

midPoint mailing list

midPoint at lists.evolveum.com<mailto:midPoint at lists.evolveum.com>

https://lists.evolveum.com/mailman/listinfo/midpoint
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20220309/66a6fefc/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 1496 bytes
Desc: image002.jpg
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20220309/66a6fefc/attachment-0001.jpg>


More information about the midPoint mailing list