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
menu, from which you can take further actions, like managing the log
502
-
framework, appenders, consumers and events.</p>
494
+
<p>It’s worth pointing out that most features and workflows of Cider Log Mode are based on <ahref="https://github.com/magit/transient">transient-mode</a>.</p>
503
495
</div>
504
496
<divclass="paragraph">
505
-
<p>To view log events and stream them to your client, type <kbd>es</kbd>
506
-
(Search log events) followed by <kbd>s</kbd>. This will open the
507
-
<code>*cider-log*</code> buffer showing any log events captured thus far. It will
508
-
also add a log consumer to this buffer, which receives newly-arriving
<p>To use CIDER Log Mode, there two main ways to get started:</p>
514
+
</div>
515
+
<divclass="ulist">
516
+
<ul>
517
+
<li>
518
+
<p><code>M-x cider-log-event</code>, which uses transient-mode and will not immediately show the logs (you should use transient-mode to show the <code>*cider-log*</code> buffer)</p>
519
+
</li>
520
+
<li>
521
+
<p><code>M-x cider-log-show</code> 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.</p>
522
+
<divclass="ulist">
523
+
<ul>
524
+
<li>
525
+
<p>It doesn’t use transient-mode - it aims to do everything in one step</p>
526
+
</li>
527
+
<li>
528
+
<p>It immediately shows the <code>*cider-log*</code> buffer</p>
529
+
</li>
530
+
</ul>
531
+
</div>
532
+
</li>
533
+
</ul>
534
+
</div>
535
+
<divclass="admonitionblock note">
536
+
<table>
537
+
<tr>
538
+
<tdclass="icon">
539
+
<iclass="fa icon-note" title="Note"></i>
540
+
</td>
541
+
<tdclass="content">
542
+
Any of these commands will only succeed in
543
+
a buffer that has a CIDER repl (<ahref="https://github.com/vspinu/sesman">Sesman</a>
<p>By using <code>M-x cider-log-show</code>, all setup and rendering will be performed for you in a single step that doesn’t pop up a <code>transient-mode</code> menu:</p>
553
+
</div>
554
+
<divclass="ulist">
555
+
<ul>
556
+
<li>
557
+
<p>A framework will be set up, automatically</p>
558
+
<divclass="ulist">
559
+
<ul>
560
+
<li>
561
+
<p>You may be prompted for a framework</p>
562
+
</li>
563
+
<li>
564
+
<p>You can prevent the prompt by customizing <code>cider-log-framework-name</code> (best done in <code>dir-locals.el</code>)</p>
565
+
</li>
566
+
</ul>
567
+
</div>
568
+
</li>
569
+
<li>
570
+
<p>A log appender and a log consumer will be setup, automatically</p>
571
+
</li>
572
+
<li>
573
+
<p>The <code>*cider-log*</code> buffer will be rendered.</p>
574
+
</li>
575
+
</ul>
576
+
</div>
577
+
<divclass="paragraph">
578
+
<p>All these steps are idempotent, so it’s safe to run <code>M-x cider-log-show</code> more than once.</p>
579
+
</div>
580
+
<divclass="paragraph">
581
+
<p>You can refine the setup afterwards (e.g. configuring filtering) by running <code>M-x cider-log</code>, <code>M-x cider-log-consumer</code>, etc.</p>
<tdclass="tableblock halign-left valign-top"><pclass="tableblock">Show the menu to manage log events via a transient-mode menu. This is one of the two main entrypoints to get started.</p></td>
<tdclass="tableblock halign-left valign-top"><pclass="tableblock">Immediately shows the logs, without a transient-mode menu. This is one of the two main entrypoints to get started.</p></td>
<tdclass="tableblock halign-left valign-top"><pclass="tableblock">Show the CIDER log menu.</p></td>
701
+
<tdclass="tableblock halign-left valign-top"><pclass="tableblock">Show the CIDER log menu. Please note that this is considered advanced usage.</p></td>
0 commit comments