You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This command renders the available log frameworks in a buffer. It
shows the log framework name, the website and javadocs urls and the
levels for now.
This is mostly to address @vemv's suggestion to ask the user to run
`(cider-sync-request:log-frameworks)`. I hooked the command up at the
usual places and added it with a small troubleshooting section to the
docs.
We could get even more sophisticated and show the current appenders
and consumers but I need a designer for this. Let's do this at some
other point.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
## master (unreleased)
4
4
5
5
### Changes
6
-
6
+
-[#3753](https://github.com/clojure-emacs/cider/pull/3753) Add `cider-log-frameworks` command to show available log frameworks in a buffer.
7
7
-[#3746](https://github.com/clojure-emacs/cider/issues/3746): Bring back `cider` completion style for activating backend-driven completion.
Copy file name to clipboardExpand all lines: doc/modules/ROOT/pages/debugging/logging.adoc
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,7 @@ Its usage is mostly self-describing, since each command has its keybinding attac
49
49
50
50
To use CIDER Log Mode, there two main ways to get started:
51
51
52
+
* `M-x cider-log-frameworks`, to see the available logging frameworks. If your logging framework is supported but not shown, see the troubleshooting section.
52
53
* `M-x cider-log-event`, which uses transient-mode and will not immediately show the logs (you should use transient-mode to show the `+*cider-log*+` buffer)
53
54
* `M-x cider-log-show` is a newer function that intends to be an "all-in-one" command, intended for a streamlined experience, which can be useful to get started, or for casual usage.
54
55
** It doesn't use transient-mode - it aims to do everything in one step
@@ -178,6 +179,10 @@ or Clojure CLI aliases.
178
179
|===
179
180
| Command | Keyboard shortcut | Description
180
181
182
+
| `cider-log-frameworks`
183
+
| kbd:[C-c M-l f a]
184
+
| Show all available log frameworks in a buffer.
185
+
181
186
| `cider-log-set-framework`
182
187
| kbd:[C-c M-l f s]
183
188
| Select the log framework to use.
@@ -351,3 +356,9 @@ using logical AND condition. The following filters are available:
351
356
| kbd:[-t]
352
357
| Only include log events that were emitted by a thread in the list of `threads`.
353
358
|===
359
+
360
+
== Troubleshooting
361
+
362
+
- Make sure the logging library is actually supported by CIDER Log Mode and that it is on your classpath.
363
+
- Try requiring the https://github.com/clojure-emacs/logjam/tree/master/src/logjam/framework[Logjam] namespace of the logging libre, e.g. `(require 'logjam.framework.<jul|logback|timbre|> :reload)` and make sure it can be loaded without errors.
364
+
- Timbre and Encore often have to be upgraded in concert, they use "break versioning". It's often useful to have Timbre + Encore at the latest stable version.
0 commit comments