You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Mikael Ståldal (JIRA)" <ji...@apache.org> on 2016/04/26 14:43:12 UTC

[jira] [Closed] (LOG4J2-1357) GelfLayout should have option to not log stacktraces for logged Throwables

     [ https://issues.apache.org/jira/browse/LOG4J2-1357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mikael Ståldal closed LOG4J2-1357.
----------------------------------

> GelfLayout should have option to not log stacktraces for logged Throwables
> --------------------------------------------------------------------------
>
>                 Key: LOG4J2-1357
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1357
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Layouts
>    Affects Versions: 2.5
>            Reporter: Mikael Ståldal
>            Assignee: Mikael Ståldal
>            Priority: Minor
>             Fix For: 2.6
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Re: [jira] [Closed] (LOG4J2-1357) GelfLayout should have option to not log stacktraces for logged Throwables

Posted by Mikael Ståldal <mi...@magine.com>.
I see a specific need in GelfLayout since a stacktrace can be quite large,
and you might want to avoid large GELF messages since they are sometimes
sent as UDP packages.

PatternLayout and RFC5425Layout already supports this (in a slightly
different way).

CsvLayout and SyslogLayout never include stacktrace (if I understand it
correctly).

So it is about HtmlLayout, JsonLayout, XmlLayout, YamlLayout.

Maybe this should be seen like the locationInfo option shared by several
layouts, and added to HtmlLayout, JsonLayout, XmlLayout and YamlLayout?

(We should probably not care about SerializedLayout.)

(BTW, I think we need to update the documentation about layouts and include
all parameters of all layouts.)

On Tue, Apr 26, 2016 at 4:12 PM, Gary Gregory <ga...@gmail.com>
wrote:

> Should all layouts support this? How about at higher levels like the
> Config?
>
> Gary
> ---------- Forwarded message ----------
> From: "Mikael Ståldal (JIRA)" <ji...@apache.org>
> Date: Apr 26, 2016 5:43 AM
> Subject: [jira] [Closed] (LOG4J2-1357) GelfLayout should have option to
> not log stacktraces for logged Throwables
> To: <lo...@logging.apache.org>
> Cc:
>
>
>      [
> https://issues.apache.org/jira/browse/LOG4J2-1357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
> ]
>
> Mikael Ståldal closed LOG4J2-1357.
> ----------------------------------
>
> > GelfLayout should have option to not log stacktraces for logged
> Throwables
> >
> --------------------------------------------------------------------------
> >
> >                 Key: LOG4J2-1357
> >                 URL: https://issues.apache.org/jira/browse/LOG4J2-1357
> >             Project: Log4j 2
> >          Issue Type: Improvement
> >          Components: Layouts
> >    Affects Versions: 2.5
> >            Reporter: Mikael Ståldal
> >            Assignee: Mikael Ståldal
> >            Priority: Minor
> >             Fix For: 2.6
> >
> >
>
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v6.3.4#6332)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-dev-help@logging.apache.org
>
>


-- 
[image: MagineTV]

*Mikael Ståldal*
Senior software developer

*Magine TV*
mikael.staldal@magine.com
Grev Turegatan 3  | 114 46 Stockholm, Sweden  |   www.magine.com

Privileged and/or Confidential Information may be contained in this
message. If you are not the addressee indicated in this message
(or responsible for delivery of the message to such a person), you may not
copy or deliver this message to anyone. In such case,
you should destroy this message and kindly notify the sender by reply
email.

Fwd: [jira] [Closed] (LOG4J2-1357) GelfLayout should have option to not log stacktraces for logged Throwables

Posted by Gary Gregory <ga...@gmail.com>.
Should all layouts support this? How about at higher levels like the Config?

Gary
---------- Forwarded message ----------
From: "Mikael Ståldal (JIRA)" <ji...@apache.org>
Date: Apr 26, 2016 5:43 AM
Subject: [jira] [Closed] (LOG4J2-1357) GelfLayout should have option to not
log stacktraces for logged Throwables
To: <lo...@logging.apache.org>
Cc:


     [
https://issues.apache.org/jira/browse/LOG4J2-1357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mikael Ståldal closed LOG4J2-1357.
----------------------------------

> GelfLayout should have option to not log stacktraces for logged Throwables
> --------------------------------------------------------------------------
>
>                 Key: LOG4J2-1357
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1357
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Layouts
>    Affects Versions: 2.5
>            Reporter: Mikael Ståldal
>            Assignee: Mikael Ståldal
>            Priority: Minor
>             Fix For: 2.6
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org