[
https://issues.apache.org/jira/browse/CASSANDRA-10241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14875798#comment-14875798
]
Paulo Motta commented on CASSANDRA-10241:
-----------------------------------------
Linking new [2.2|https://github.com/pauloricardomg/cassandra/tree/2.2-10241]
and [3.0|https://github.com/pauloricardomg/cassandra/tree/3.0-10241] patches
for review. Cassci links remains the same as mentioned before on this thread.
Based on the previous discussions, the most relevant changes are:
* Created debug.log with assynchronous appender enabled by default.
** Unfortunately logback does not provide natively an easy handle for disabling
appenders, unless a new library is added or it's done programmatically via
clumsy interfaces. So, I basically added some comments on {{logback.xml}}
indicating how to disable the {{debug.log}}, and also on {{NEWS.TXT}}.
* Changed default log level of {{org.apache.cassandra}} from {{INFO}} to
{{DEBUG}}
* Reduced logs with {{DEBUG}} level to {{TRACE}} in all packages, except
{{config}}, {{gms}}, {{repair}}, {{streaming}}.
** On {{service}} package, reduced unnecessary chatty logs from {{DEBUG}} level
to {{TRACE}} and kept the rest.
* Reduced the following logs from {{INFO}} to {{DEBUG}} level (which will now
show on debug.log):
** Memtable flushing actions
** Commit log replayed files
** Compacted sstables
** SStable opening (SSTableReader)
* Added a notice to {{NEWS.txt}} describing the changes.
I made a simple experiment with CCM and the new debug.log seems reasonable,
only 2x to 3x more verbose than system.log with these changes. I will attach
the results next.
Since this change touches many classes, ideally it would be nice if this could
be committed soon after is reviewed and accepted, so we don't incur much
rebasing overhead.
> Keep a separate production debug log for troubleshooting
> --------------------------------------------------------
>
> Key: CASSANDRA-10241
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10241
> Project: Cassandra
> Issue Type: New Feature
> Components: Config
> Reporter: Jonathan Ellis
> Assignee: Paulo Motta
> Fix For: 2.1.x, 2.2.x, 3.0.x
>
>
> [~aweisberg] had the suggestion to keep a separate debug log for aid in
> troubleshooting, not intended for regular human consumption but where we can
> log things that might help if something goes wrong.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)