Hi Jan,

Yes this is very much relevant and useful. Much thanks for sharing the details. 
I guess I'll reach out to you separately for further brainstorming.

Best.
Arnab

-----Original Message-----
From: Jan Lahoda [mailto:lah...@gmail.com] 
Sent: Wednesday, March 20, 2019 11:57 AM
To: dev@netbeans.incubator.apache.org
Cc: Arnab Chanda
Subject: Re: Question | Logger | NetBeans plugin

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":
https://urldefense.proofpoint.com/v2/url?u=http-3A__wiki.netbeans.org_JavaDeclarativeHintsFormat&d=DwIFaQ&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=D1IHkKGFvzxf_5_uVPbRqKrc_sYohvaaqKm9-IRA5w4&m=ZTUHDdxswZNJaZe5CsW7lDw8igPyw9pM9IQCHRS2R1g&s=VTLbs8OYkjGuh2Qq208d_bozfEQFzzR-jMmWy6mq0X0&e=

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 <arnab.cha...@oracle.com>
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:geertjan.wiele...@googlemail.com.INVALID]
> 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=D1IHkKGF
> vzxf_5_uVPbRqKrc_sYohvaaqKm9-IRA5w4&m=eyEN6yjDiXjXS0zoJWxOCuB_hWwLd7xu
> 6dno8H2ipLA&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 
> <arnab.cha...@oracle.com>
> 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: dev-unsubscr...@netbeans.incubator.apache.org
> For additional commands, e-mail: 
> dev-h...@netbeans.incubator.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://urldefense.proofpoint.com/v2/url?u=https-3A__cwiki.apache.org_
> confluence_display_NETBEANS_Mailing-2Blists&d=DwIFaQ&c=RoP1YumCXCgaWHv
> lZYR8PZh8Bv7qIrMUB65eapI_JnE&r=D1IHkKGFvzxf_5_uVPbRqKrc_sYohvaaqKm9-IR
> A5w4&m=ZTUHDdxswZNJaZe5CsW7lDw8igPyw9pM9IQCHRS2R1g&s=G9ufPDbwJjISTmyf9
> P3QpT2BgYPh5AxaPGZPOlT6LqU&e=
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to