You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@reef.apache.org by "Andrew Chung (JIRA)" <ji...@apache.org> on 2015/08/10 21:35:46 UTC
[jira] [Commented] (REEF-562) Add Logger.IsLoggable(Level)
[ https://issues.apache.org/jira/browse/REEF-562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14680631#comment-14680631 ]
Andrew Chung commented on REEF-562:
-----------------------------------
Is this an issue? It seems like the Logger class compares CustcomLevel [sic] to level before actually making the TraceEvent call, though we can potentially avert the string.Format call in the Log with exception call.
> Add Logger.IsLoggable(Level)
> ----------------------------
>
> Key: REEF-562
> URL: https://issues.apache.org/jira/browse/REEF-562
> Project: REEF
> Issue Type: New Feature
> Components: REEF.NET
> Reporter: Markus Weimer
>
> Currently, {{Logger}} has no way of letting code know whether a certain log level is actually logged. This prevents us from guarding the potential costly generation of ultimately discarded log lines. We should add a boolean method to fix that.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)