[hibernate-dev] [Parser] Prefixes used for log messages

Davide D'Alto davide at hibernate.org
Tue Aug 27 07:38:45 EDT 2013


> My vote goes to #2 as long as we use a shorter code. HQL-00001 doesn't
looks too bad.
> In case we incorporate this in ORM I'd change them to HHH- but we can
discuss that if/when that happens.

+1

HQLP as a code perhaps.


On Tue, Aug 27, 2013 at 12:20 PM, Sanne Grinovero <sanne at hibernate.org>wrote:

> My vote goes to #2 as long as we use a shorter code. HQL-00001 doesn't
> looks too bad.
>
> In case we incorporate this in ORM I'd change them to HHH- but we can
> discuss that if/when that happens.
>
> On 27 August 2013 10:33, Gunnar Morling <gunnar at hibernate.org> wrote:
> > Hi all,
> >
> > Emmanuel and I are wondering which prefix should be used for log messages
> > created by the parser component ("project code" in JBoss logging
> > nomenclature).
> >
> > I can see the following possibilities:
> >
> > 1) Use HHH-... as in ORM, using a reserved interval of ids
> > 2) Use a new prefix such as HQLPARSER in all messages of all parser
> > components (currently hqlparser-core and hqlparser-lucene), using a
> > reserved id interval for each such component
> > 3) Use a specific prefix for each parser component, e.g. HQLPARSER,
> HQLLUCN
> > etc.
> >
> > I think 3) is the simplest from a dev perspective (no ranges to
> consider),
> > but it may cause a proliferation of prefixes, possibly confusing users.
> 1)
> > may be irritating when using the parser in alternative contexts such as
> > ISPN. As an indicator, I feel it makes sense to use different prefixes
> for
> > code bases living in different repos and with independent release cycle
> (as
> > is the case with ORM and the parser). So I'd vote for 2.
> >
> > Any thoughts?
> >
> > --Gunnar
> > _______________________________________________
> > hibernate-dev mailing list
> > hibernate-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/hibernate-dev
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>


More information about the hibernate-dev mailing list