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

Emmanuel Bernard emmanuel at hibernate.org
Tue Aug 27 07:34:37 EDT 2013


My initial reaction was to go for 1. but I forgot that the parser is now
reused by ISPN. I'd go for 2. then.

Emmanuel

On Tue 2013-08-27 11:33, Gunnar Morling 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


More information about the hibernate-dev mailing list