Hi Arnab,
FWIW, the IDE has ways to check if source code fulfills some requirements
and to add/modify code (especially for Java). This can be done either using
"Declarative Java Hints":
http://wiki.netbeans.org/JavaDeclarativeHintsFormat
Or using a "hint" written in Java. These can then participate either in
Source/Inspect (which runs the specified "hints" and shows violations) or
in Refactoring/Inspect and Transform, which runs the specified "hints" and
lets them propose changes to the source code.
Please let me know if this would be interesting to you.
Thanks,
Jan
On Thu, Mar 14, 2019 at 11:02 AM Arnab Chanda <[email protected]>
wrote:
> Canned logger messages means logger messages that have an inherent
> structure, formatting and the necessary details, that makes it possible for
> a parser to interpret the actual log messages correctly.
>
> For example, while making a REST service in the client code, if developer
> writes
>
> LOGGER.trace(null, "Running call");
>
> When this finally shows up in the production logging dashboard, it does
> not help. However, writing this
>
> LOGGER.trace(null, "Running call to " + uri.toString());
>
> Tells what the code was trying to reach.
>
> We are looking for ways to avoid such discrepancy during actual
> development. Ours is a large team and manually reviewing each logger
> message is a tedious task. If there is a way to feed the source code and
> *automatically* generate logger message based on some patterns, that might
> help.
>
> That’s what I referred to as "canned" message. Not sure if such things
> have been tried before.
>
>
> -----Original Message-----
> From: Geertjan Wielenga [mailto:[email protected]]
> Sent: Thursday, March 14, 2019 2:20 PM
> To: dev
> Subject: Re: Question | Logger | NetBeans plugin
>
> What do you mean by canned logger messages?
>
> Does this help:
>
> https://urldefense.proofpoint.com/v2/url?u=http-3A__bits.netbeans.org_dev_javadoc_org-2Dopenide-2Dutil_org_openide_util_doc-2Dfiles_logging.html&d=DwIBaQ&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=D1IHkKGFvzxf_5_uVPbRqKrc_sYohvaaqKm9-IRA5w4&m=eyEN6yjDiXjXS0zoJWxOCuB_hWwLd7xu6dno8H2ipLA&s=p2ZpeNKSiZI7wONPzhRpYHnd4BJPBv4LplT2AYUA-pY&e=
>
> If you explain exactly what it is you need, people are likely to help.
>
> Gj
>
> On Tue, Mar 12, 2019 at 11:07 AM Arnab Chanda <[email protected]>
> wrote:
>
> > Hello,
> >
> > I am doing a POC related to logger for a requirement/feature, that
> > will allow to write large volumes of java code with
> > consistent/predictable/structured logging without human intervention.
> >
> > As part of that, I am looking for ways to generate canned logger
> > messages within the code using NetBeans plugin.
> >
> > Are you aware of anything like this that exists today?
> >
> > Can you recommend me any place/link to explore something similar?
> >
> > Kind regards.
> > Arnab
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>