<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Clojure Q&amp;A - Recent questions tagged structured logs</title>
<link>https://ask.clojure.org/index.php/tag/structured+logs</link>
<description></description>
<item>
<title>Add support for context logging in tools.logging</title>
<link>https://ask.clojure.org/index.php/13491/add-support-for-context-logging-in-tools-logging</link>
<description>&lt;p&gt;Structured logging beats plain text.&lt;br&gt;
Context logging + structured logging is a net win. At my workplace we could dump our ad-hoc logging solution which besides support for context logging is inferior to tools.logging, and will make a strong addition to the library's capabilities.&lt;br&gt;
To add support for context logging, we'll probably need an additional protocol for the frameworks which implement such APIs (like SLF4J).&lt;br&gt;
Not sure if it's required, but an additional logging function might also simplify the implementation.&lt;br&gt;
Suggested usage:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;(log/info-c {:foo &quot;bar&quot;} my-error &quot;some message&quot;)
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Java Interop</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/13491/add-support-for-context-logging-in-tools-logging</guid>
<pubDate>Sun, 26 Nov 2023 16:21:19 +0000</pubDate>
</item>
</channel>
</rss>