- From: Erik Bruchez <ebruchez@orbeon.com>
- Date: Mon, 21 Jan 2019 09:45:37 -0800
- To: iturcan@drake.sk
- Cc: XForms <public-xformsusers@w3.org>
- Message-ID: <CAAc0PEVRHWj3N3vgk2HkRjy6QNPz7-=paH=MK5GMw0QeG2faKg@mail.gmail.com>
Ivan, An implementation can decide to support levels which are prefixed names: https://www.w3.org/community/xformsusers/wiki/XForms_2.0#def-PrefixedName In fact, for example, Orbeon Forms supports: <xf:message level="xxf:log-info"> And similar for other log levels. I don't know about other implementations. -Erik On Mon, Jan 21, 2019 at 2:07 AM <iturcan@drake.sk> wrote: > Hello, > > > > How can I write some specific behavior for logging with xform technology ? > > > > For example xforms-link-error is called when model instance loading fails. > But how is possible to add some user custom log message ? I see there is > action message, but it allow me only show message as > modal/modeless/ephemeral. All of these except modal are usable just when > form is rendered. > > > > Could be possible to add some specific value for attribute Level of > message element, for example: > > > > <xf:message *level="logger"* ev:event="xforms-link-error">ERROR: > xforms-link-error !</xf:message> > > > > Or better specific for type of logging: > > > > <xf:message *level="logger-info"* ev:event=" xforms-model-construct-done">INFO: > xforms-model-construct-done </xf:message> > > <xf:message *level="logger-wrn"* ev:event=" xforms-model-construct-done" > if=”….some specified condition…”>WARN: some specific problem could > be…</xf:message> > > <xf:message *level="logger-err"* ev:event="xforms-link-error">ERROR: > xforms-link-error !</xf:message> > > > > I would like avoid javascript call within an action. > > > > Rgds, > > > > Ivan > > > > > > > > >
Received on Monday, 21 January 2019 17:46:12 UTC