doing 2.1.31pre → 2.1.35

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +58 -1
  3. data/Dockerfile-2.6 +3 -1
  4. data/Dockerfile-2.7 +4 -2
  5. data/Dockerfile-3.0 +3 -1
  6. data/Gemfile.lock +1 -71
  7. data/README.md +1 -1
  8. data/bash_profile +13 -0
  9. data/bin/commands/config.rb +16 -13
  10. data/bin/commands/done.rb +1 -1
  11. data/bin/commands/grep.rb +2 -29
  12. data/bin/commands/meanwhile.rb +1 -1
  13. data/bin/commands/now.rb +1 -1
  14. data/bin/commands/on.rb +6 -16
  15. data/bin/commands/open.rb +2 -2
  16. data/bin/commands/recent.rb +2 -14
  17. data/bin/commands/rotate.rb +17 -0
  18. data/bin/commands/sections.rb +82 -7
  19. data/bin/commands/show.rb +1 -21
  20. data/bin/commands/since.rb +5 -16
  21. data/bin/commands/tag_dir.rb +27 -3
  22. data/bin/commands/today.rb +3 -28
  23. data/bin/commands/yesterday.rb +2 -35
  24. data/bin/doing +9 -8
  25. data/docs/doc/Array.html +1 -1
  26. data/docs/doc/BooleanTermParser/Clause.html +1 -1
  27. data/docs/doc/BooleanTermParser/Operator.html +1 -1
  28. data/docs/doc/BooleanTermParser/Query.html +1 -1
  29. data/docs/doc/BooleanTermParser/QueryParser.html +1 -1
  30. data/docs/doc/BooleanTermParser/QueryTransformer.html +1 -1
  31. data/docs/doc/BooleanTermParser.html +1 -1
  32. data/docs/doc/Doing/Color.html +1 -1
  33. data/docs/doc/Doing/Completion.html +1 -1
  34. data/docs/doc/Doing/Configuration.html +3 -3
  35. data/docs/doc/Doing/Errors/DoingNoTraceError.html +1 -1
  36. data/docs/doc/Doing/Errors/DoingRuntimeError.html +1 -1
  37. data/docs/doc/Doing/Errors/DoingStandardError.html +1 -1
  38. data/docs/doc/Doing/Errors/EmptyInput.html +1 -1
  39. data/docs/doc/Doing/Errors/NoResults.html +1 -1
  40. data/docs/doc/Doing/Errors/PluginException.html +1 -1
  41. data/docs/doc/Doing/Errors/UserCancelled.html +1 -1
  42. data/docs/doc/Doing/Errors/WrongCommand.html +1 -1
  43. data/docs/doc/Doing/Errors.html +1 -1
  44. data/docs/doc/Doing/Hooks.html +1 -1
  45. data/docs/doc/Doing/Item.html +20 -3
  46. data/docs/doc/Doing/Items.html +209 -1
  47. data/docs/doc/Doing/LogAdapter.html +1 -1
  48. data/docs/doc/Doing/Logger.html +1807 -0
  49. data/docs/doc/Doing/Note.html +1 -1
  50. data/docs/doc/Doing/Pager.html +1 -1
  51. data/docs/doc/Doing/Plugins.html +1 -1
  52. data/docs/doc/Doing/Prompt.html +1 -1
  53. data/docs/doc/Doing/Section.html +1 -1
  54. data/docs/doc/Doing/TemplateString.html +1 -1
  55. data/docs/doc/Doing/Types.html +3 -3
  56. data/docs/doc/Doing/Util/Backup.html +1 -1
  57. data/docs/doc/Doing/Util.html +1 -1
  58. data/docs/doc/Doing/WWID.html +3 -53
  59. data/docs/doc/Doing.html +4 -4
  60. data/docs/doc/FalseClass.html +1 -1
  61. data/docs/doc/GLI/Commands/Help.html +1 -1
  62. data/docs/doc/GLI/Commands/MarkdownDocumentListener.html +1 -1
  63. data/docs/doc/GLI/Commands.html +1 -1
  64. data/docs/doc/GLI.html +1 -1
  65. data/docs/doc/Hash.html +1 -1
  66. data/docs/doc/Object.html +1 -1
  67. data/docs/doc/PhraseParser/Operator.html +1 -1
  68. data/docs/doc/PhraseParser/PhraseClause.html +1 -1
  69. data/docs/doc/PhraseParser/Query.html +1 -1
  70. data/docs/doc/PhraseParser/QueryParser.html +1 -1
  71. data/docs/doc/PhraseParser/QueryTransformer.html +1 -1
  72. data/docs/doc/PhraseParser/TermClause.html +1 -1
  73. data/docs/doc/PhraseParser.html +1 -1
  74. data/docs/doc/Status.html +1 -1
  75. data/docs/doc/String.html +1 -1
  76. data/docs/doc/Symbol.html +1 -1
  77. data/docs/doc/Time.html +1 -1
  78. data/docs/doc/TrueClass.html +1 -1
  79. data/docs/doc/_index.html +10 -10
  80. data/docs/doc/class_list.html +1 -1
  81. data/docs/doc/file.README.html +2 -2
  82. data/docs/doc/index.html +2 -2
  83. data/docs/doc/method_list.html +407 -383
  84. data/docs/doc/top-level-namespace.html +1 -1
  85. data/docs/index.md +1 -1
  86. data/doing.gemspec +23 -24
  87. data/doing.rdoc +235 -18
  88. data/inputrc +57 -0
  89. data/lib/completion/_doing.zsh +47 -51
  90. data/lib/completion/doing.bash +12 -23
  91. data/lib/completion/doing.fish +39 -12
  92. data/lib/doing/add_options.rb +36 -1
  93. data/lib/doing/changelog/changes.rb +1 -1
  94. data/lib/doing/chronify/string.rb +1 -1
  95. data/lib/doing/completion/bash_completion.rb +1 -1
  96. data/lib/doing/completion/fish_completion.rb +2 -2
  97. data/lib/doing/completion/zsh_completion.rb +10 -4
  98. data/lib/doing/configuration.rb +7 -1
  99. data/lib/doing/item.rb +9 -2
  100. data/lib/doing/items.rb +48 -0
  101. data/lib/doing/{log_adapter.rb → logger.rb} +8 -2
  102. data/lib/doing/plugins/import/calendar_import.rb +1 -1
  103. data/lib/doing/plugins/import/doing_import.rb +1 -1
  104. data/lib/doing/plugins/import/timing_import.rb +1 -1
  105. data/lib/doing/string/tags.rb +1 -1
  106. data/lib/doing/types.rb +2 -2
  107. data/lib/doing/version.rb +1 -1
  108. data/lib/doing/wwid.rb +43 -43
  109. data/lib/doing.rb +4 -4
  110. data/lib/examples/plugins/capture_thing_import.rb +1 -1
  111. data/lib/helpers/threaded_tests.rb +2 -0
  112. metadata +101 -138
  113. data/.yardoc/checksums +0 -30
  114. data/.yardoc/complete +0 -0
  115. data/.yardoc/object_types +0 -0
  116. data/.yardoc/objects/root.dat +0 -0
  117. data/.yardoc/proxy_types +0 -0
  118. data/bin/commands/add_section.rb +0 -15
@@ -0,0 +1,1807 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Class: Doing::Logger
8
+
9
+ &mdash; Documentation by YARD 0.9.27
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" />
16
+
17
+ <script type="text/javascript">
18
+ pathId = "Doing::Logger";
19
+ relpath = '../';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="../_index.html">Index (L)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../Doing.html" title="Doing (module)">Doing</a></span></span>
41
+ &raquo;
42
+ <span class="title">Logger</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="../class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Class: Doing::Logger
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName"><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></span>
73
+
74
+ <ul class="fullTree">
75
+ <li><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></li>
76
+
77
+ <li class="next">Doing::Logger</li>
78
+
79
+ </ul>
80
+ <a href="#" class="inheritanceTree">show all</a>
81
+
82
+ </dd>
83
+ </dl>
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+ <dl>
96
+ <dt>Defined in:</dt>
97
+ <dd>lib/doing/logger.rb</dd>
98
+ </dl>
99
+
100
+ </div>
101
+
102
+ <h2>Overview</h2><div class="docstring">
103
+ <div class="discussion">
104
+ <p>Log adapter</p>
105
+
106
+
107
+ </div>
108
+ </div>
109
+ <div class="tags">
110
+
111
+
112
+ </div>
113
+
114
+ <h2>
115
+ Constant Summary
116
+ <small><a href="#" class="constants_summary_toggle">collapse</a></small>
117
+ </h2>
118
+
119
+ <dl class="constants">
120
+
121
+ <dt id="TOPIC_WIDTH-constant" class="">TOPIC_WIDTH =
122
+
123
+ </dt>
124
+ <dd><pre class="code"><span class='int'>12</span></pre></dd>
125
+
126
+ <dt id="LOG_LEVELS-constant" class="">LOG_LEVELS =
127
+
128
+ </dt>
129
+ <dd><pre class="code"><span class='lbrace'>{</span>
130
+ <span class='label'>debug:</span> <span class='op'>::</span><span class='const'>Logger</span><span class='op'>::</span><span class='const'>DEBUG</span><span class='comma'>,</span>
131
+ <span class='label'>info:</span> <span class='op'>::</span><span class='const'>Logger</span><span class='op'>::</span><span class='const'>INFO</span><span class='comma'>,</span>
132
+ <span class='label'>warn:</span> <span class='op'>::</span><span class='const'>Logger</span><span class='op'>::</span><span class='const'>WARN</span><span class='comma'>,</span>
133
+ <span class='label'>error:</span> <span class='op'>::</span><span class='const'>Logger</span><span class='op'>::</span><span class='const'>ERROR</span>
134
+ <span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
135
+
136
+ <dt id="COUNT_KEYS-constant" class="">COUNT_KEYS =
137
+
138
+ </dt>
139
+ <dd><pre class="code"><span class='qsymbols_beg'>%i[</span><span class='words_sep'>
140
+ </span><span class='tstring_content'>added</span><span class='words_sep'>
141
+ </span><span class='tstring_content'>added_tags</span><span class='words_sep'>
142
+ </span><span class='tstring_content'>archived</span><span class='words_sep'>
143
+ </span><span class='tstring_content'>autotag</span><span class='words_sep'>
144
+ </span><span class='tstring_content'>completed</span><span class='words_sep'>
145
+ </span><span class='tstring_content'>completed_archived</span><span class='words_sep'>
146
+ </span><span class='tstring_content'>deleted</span><span class='words_sep'>
147
+ </span><span class='tstring_content'>moved</span><span class='words_sep'>
148
+ </span><span class='tstring_content'>removed_tags</span><span class='words_sep'>
149
+ </span><span class='tstring_content'>rotated</span><span class='words_sep'>
150
+ </span><span class='tstring_content'>skipped</span><span class='words_sep'>
151
+ </span><span class='tstring_content'>updated</span><span class='words_sep'>
152
+ </span><span class='tstring_content'>exported</span><span class='words_sep'>
153
+ </span><span class='tstring_end'>]</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
154
+
155
+ </dl>
156
+
157
+
158
+
159
+
160
+
161
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
162
+ <ul class="summary">
163
+
164
+ <li class="public ">
165
+ <span class="summary_signature">
166
+
167
+ <a href="#level-instance_method" title="#level (instance method)">#<strong>level</strong> &#x21d2; Object </a>
168
+
169
+
170
+
171
+ </span>
172
+
173
+
174
+
175
+
176
+ <span class="note title readonly">readonly</span>
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+ <span class="summary_desc"><div class='inline'><p>Returns the current log level (debug, info, warn, error).</p>
187
+ </div></span>
188
+
189
+ </li>
190
+
191
+
192
+ <li class="public ">
193
+ <span class="summary_signature">
194
+
195
+ <a href="#logdev=-instance_method" title="#logdev= (instance method)">#<strong>logdev</strong> &#x21d2; Object </a>
196
+
197
+
198
+
199
+ </span>
200
+
201
+
202
+
203
+
204
+
205
+ <span class="note title writeonly">writeonly</span>
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+ <span class="summary_desc"><div class='inline'><p>Sets the log device.</p>
215
+ </div></span>
216
+
217
+ </li>
218
+
219
+
220
+ <li class="public ">
221
+ <span class="summary_signature">
222
+
223
+ <a href="#max_length=-instance_method" title="#max_length= (instance method)">#<strong>max_length</strong> &#x21d2; Object </a>
224
+
225
+
226
+
227
+ </span>
228
+
229
+
230
+
231
+
232
+
233
+ <span class="note title writeonly">writeonly</span>
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+ <span class="summary_desc"><div class='inline'><p>Max length of log messages (truncate in middle).</p>
243
+ </div></span>
244
+
245
+ </li>
246
+
247
+
248
+ <li class="public ">
249
+ <span class="summary_signature">
250
+
251
+ <a href="#messages-instance_method" title="#messages (instance method)">#<strong>messages</strong> &#x21d2; Object </a>
252
+
253
+
254
+
255
+ </span>
256
+
257
+
258
+
259
+
260
+ <span class="note title readonly">readonly</span>
261
+
262
+
263
+
264
+
265
+
266
+
267
+
268
+
269
+
270
+ <span class="summary_desc"><div class='inline'><p>Returns the value of attribute messages.</p>
271
+ </div></span>
272
+
273
+ </li>
274
+
275
+
276
+ <li class="public ">
277
+ <span class="summary_signature">
278
+
279
+ <a href="#results-instance_method" title="#results (instance method)">#<strong>results</strong> &#x21d2; Object </a>
280
+
281
+
282
+
283
+ </span>
284
+
285
+
286
+
287
+
288
+ <span class="note title readonly">readonly</span>
289
+
290
+
291
+
292
+
293
+
294
+
295
+
296
+
297
+
298
+ <span class="summary_desc"><div class='inline'><p>Returns the value of attribute results.</p>
299
+ </div></span>
300
+
301
+ </li>
302
+
303
+
304
+ </ul>
305
+
306
+
307
+
308
+
309
+
310
+ <h2>
311
+ Instance Method Summary
312
+ <small><a href="#" class="summary_toggle">collapse</a></small>
313
+ </h2>
314
+
315
+ <ul class="summary">
316
+
317
+ <li class="public ">
318
+ <span class="summary_signature">
319
+
320
+ <a href="#abort_with-instance_method" title="#abort_with (instance method)">#<strong>abort_with</strong>(topic, message = nil, &amp;block) &#x21d2; Object </a>
321
+
322
+
323
+
324
+ </span>
325
+
326
+
327
+
328
+
329
+
330
+
331
+
332
+
333
+
334
+ <span class="summary_desc"><div class='inline'><p>Print an error message and immediately abort the process.</p>
335
+ </div></span>
336
+
337
+ </li>
338
+
339
+
340
+ <li class="public ">
341
+ <span class="summary_signature">
342
+
343
+ <a href="#adjust_verbosity-instance_method" title="#adjust_verbosity (instance method)">#<strong>adjust_verbosity</strong>(options = {}) &#x21d2; Object </a>
344
+
345
+
346
+
347
+ </span>
348
+
349
+
350
+
351
+
352
+
353
+
354
+
355
+
356
+
357
+ <span class="summary_desc"><div class='inline'></div></span>
358
+
359
+ </li>
360
+
361
+
362
+ <li class="public ">
363
+ <span class="summary_signature">
364
+
365
+ <a href="#benchmark-instance_method" title="#benchmark (instance method)">#<strong>benchmark</strong>(key, state) &#x21d2; Object </a>
366
+
367
+
368
+
369
+ </span>
370
+
371
+
372
+
373
+
374
+
375
+
376
+
377
+
378
+
379
+ <span class="summary_desc"><div class='inline'></div></span>
380
+
381
+ </li>
382
+
383
+
384
+ <li class="public ">
385
+ <span class="summary_signature">
386
+
387
+ <a href="#count-instance_method" title="#count (instance method)">#<strong>count</strong>(key, level: :info, count: 1, tag: nil, message: nil) &#x21d2; Object </a>
388
+
389
+
390
+
391
+ </span>
392
+
393
+
394
+
395
+
396
+
397
+
398
+
399
+
400
+
401
+ <span class="summary_desc"><div class='inline'></div></span>
402
+
403
+ </li>
404
+
405
+
406
+ <li class="public ">
407
+ <span class="summary_signature">
408
+
409
+ <a href="#debug-instance_method" title="#debug (instance method)">#<strong>debug</strong>(topic, message = nil, &amp;block) &#x21d2; Object </a>
410
+
411
+
412
+
413
+ </span>
414
+
415
+
416
+
417
+
418
+
419
+
420
+
421
+
422
+
423
+ <span class="summary_desc"><div class='inline'><p>Print a debug message.</p>
424
+ </div></span>
425
+
426
+ </li>
427
+
428
+
429
+ <li class="public ">
430
+ <span class="summary_signature">
431
+
432
+ <a href="#error-instance_method" title="#error (instance method)">#<strong>error</strong>(topic, message = nil, &amp;block) &#x21d2; Object </a>
433
+
434
+
435
+
436
+ </span>
437
+
438
+
439
+
440
+
441
+
442
+
443
+
444
+
445
+
446
+ <span class="summary_desc"><div class='inline'><p>Print an error message.</p>
447
+ </div></span>
448
+
449
+ </li>
450
+
451
+
452
+ <li class="public ">
453
+ <span class="summary_signature">
454
+
455
+ <a href="#formatted_topic-instance_method" title="#formatted_topic (instance method)">#<strong>formatted_topic</strong>(topic, colon: false) &#x21d2; Object </a>
456
+
457
+
458
+
459
+ </span>
460
+
461
+
462
+
463
+
464
+
465
+
466
+
467
+
468
+
469
+ <span class="summary_desc"><div class='inline'><p>Format the topic.</p>
470
+ </div></span>
471
+
472
+ </li>
473
+
474
+
475
+ <li class="public ">
476
+ <span class="summary_signature">
477
+
478
+ <a href="#info-instance_method" title="#info (instance method)">#<strong>info</strong>(topic, message = nil, &amp;block) &#x21d2; Object </a>
479
+
480
+
481
+
482
+ </span>
483
+
484
+
485
+
486
+
487
+
488
+
489
+
490
+
491
+
492
+ <span class="summary_desc"><div class='inline'><p>Print a message.</p>
493
+ </div></span>
494
+
495
+ </li>
496
+
497
+
498
+ <li class="public ">
499
+ <span class="summary_signature">
500
+
501
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(level = :info) &#x21d2; Logger </a>
502
+
503
+
504
+
505
+ </span>
506
+
507
+
508
+ <span class="note title constructor">constructor</span>
509
+
510
+
511
+
512
+
513
+
514
+
515
+
516
+
517
+ <span class="summary_desc"><div class='inline'><p>Create a new instance of a log writer.</p>
518
+ </div></span>
519
+
520
+ </li>
521
+
522
+
523
+ <li class="public ">
524
+ <span class="summary_signature">
525
+
526
+ <a href="#log_benchmarks-instance_method" title="#log_benchmarks (instance method)">#<strong>log_benchmarks</strong> &#x21d2; Object </a>
527
+
528
+
529
+
530
+ </span>
531
+
532
+
533
+
534
+
535
+
536
+
537
+
538
+
539
+
540
+ <span class="summary_desc"><div class='inline'></div></span>
541
+
542
+ </li>
543
+
544
+
545
+ <li class="public ">
546
+ <span class="summary_signature">
547
+
548
+ <a href="#log_change-instance_method" title="#log_change (instance method)">#<strong>log_change</strong>(tags_added: [], tags_removed: [], count: 1, item: nil, single: false) &#x21d2; Object </a>
549
+
550
+
551
+
552
+ </span>
553
+
554
+
555
+
556
+
557
+
558
+
559
+
560
+
561
+
562
+ <span class="summary_desc"><div class='inline'></div></span>
563
+
564
+ </li>
565
+
566
+
567
+ <li class="public ">
568
+ <span class="summary_signature">
569
+
570
+ <a href="#log_level=-instance_method" title="#log_level= (instance method)">#<strong>log_level=</strong>(level = &#39;info&#39;) &#x21d2; Object </a>
571
+
572
+
573
+
574
+ </span>
575
+
576
+
577
+
578
+
579
+
580
+
581
+
582
+
583
+
584
+ <span class="summary_desc"><div class='inline'><p>Set the log level on the writer.</p>
585
+ </div></span>
586
+
587
+ </li>
588
+
589
+
590
+ <li class="public ">
591
+ <span class="summary_signature">
592
+
593
+ <a href="#log_now-instance_method" title="#log_now (instance method)">#<strong>log_now</strong>(level, topic, message = nil, &amp;block) &#x21d2; Object </a>
594
+
595
+
596
+
597
+ </span>
598
+
599
+
600
+
601
+
602
+
603
+
604
+
605
+
606
+
607
+ <span class="summary_desc"><div class='inline'><p>Log to console immediately instead of writing messages on exit.</p>
608
+ </div></span>
609
+
610
+ </li>
611
+
612
+
613
+ <li class="public ">
614
+ <span class="summary_signature">
615
+
616
+ <a href="#output_results-instance_method" title="#output_results (instance method)">#<strong>output_results</strong> &#x21d2; Object </a>
617
+
618
+
619
+
620
+ </span>
621
+
622
+
623
+
624
+
625
+
626
+
627
+
628
+
629
+
630
+ <span class="summary_desc"><div class='inline'><p>Output registers based on log level.</p>
631
+ </div></span>
632
+
633
+ </li>
634
+
635
+
636
+ <li class="public ">
637
+ <span class="summary_signature">
638
+
639
+ <a href="#restore_level-instance_method" title="#restore_level (instance method)">#<strong>restore_level</strong> &#x21d2; Object </a>
640
+
641
+
642
+
643
+ </span>
644
+
645
+
646
+
647
+
648
+
649
+
650
+
651
+
652
+
653
+ <span class="summary_desc"><div class='inline'><p>Restore temporary level.</p>
654
+ </div></span>
655
+
656
+ </li>
657
+
658
+
659
+ <li class="public ">
660
+ <span class="summary_signature">
661
+
662
+ <a href="#temp_level-instance_method" title="#temp_level (instance method)">#<strong>temp_level</strong>(level) &#x21d2; Object </a>
663
+
664
+
665
+
666
+ </span>
667
+
668
+
669
+
670
+
671
+
672
+
673
+
674
+
675
+
676
+ <span class="summary_desc"><div class='inline'><p>Set log level temporarily.</p>
677
+ </div></span>
678
+
679
+ </li>
680
+
681
+
682
+ <li class="public ">
683
+ <span class="summary_signature">
684
+
685
+ <a href="#warn-instance_method" title="#warn (instance method)">#<strong>warn</strong>(topic, message = nil, &amp;block) &#x21d2; Object </a>
686
+
687
+
688
+
689
+ </span>
690
+
691
+
692
+
693
+
694
+
695
+
696
+
697
+
698
+
699
+ <span class="summary_desc"><div class='inline'><p>Print a message.</p>
700
+ </div></span>
701
+
702
+ </li>
703
+
704
+
705
+ <li class="public ">
706
+ <span class="summary_signature">
707
+
708
+ <a href="#write-instance_method" title="#write (instance method)">#<strong>write</strong>(level_of_message, topic, message = nil, &amp;block) &#x21d2; Boolean </a>
709
+
710
+
711
+
712
+ </span>
713
+
714
+
715
+
716
+
717
+
718
+
719
+
720
+
721
+
722
+ <span class="summary_desc"><div class='inline'><p>Log a message.</p>
723
+ </div></span>
724
+
725
+ </li>
726
+
727
+
728
+ </ul>
729
+
730
+
731
+ <div id="constructor_details" class="method_details_list">
732
+ <h2>Constructor Details</h2>
733
+
734
+ <div class="method_details first">
735
+ <h3 class="signature first" id="initialize-instance_method">
736
+
737
+ #<strong>initialize</strong>(level = :info) &#x21d2; <tt><span class='object_link'><a href="" title="Doing::Logger (class)">Logger</a></span></tt>
738
+
739
+
740
+
741
+
742
+
743
+ </h3><div class="docstring">
744
+ <div class="discussion">
745
+ <p>Create a new instance of a log writer</p>
746
+
747
+
748
+ </div>
749
+ </div>
750
+ <div class="tags">
751
+ <p class="tag_title">Parameters:</p>
752
+ <ul class="param">
753
+
754
+ <li>
755
+
756
+ <span class='name'>level</span>
757
+
758
+
759
+ <span class='type'>(<tt>optional</tt>, <tt>symbol</tt>)</span>
760
+
761
+
762
+ <em class="default">(defaults to: <tt>:info</tt>)</em>
763
+
764
+
765
+ &mdash;
766
+ <div class='inline'><p>the log level</p>
767
+ </div>
768
+
769
+ </li>
770
+
771
+ </ul>
772
+
773
+
774
+ </div>
775
+ </div>
776
+
777
+ </div>
778
+
779
+ <div id="instance_attr_details" class="attr_details">
780
+ <h2>Instance Attribute Details</h2>
781
+
782
+
783
+ <span id=""></span>
784
+ <div class="method_details first">
785
+ <h3 class="signature first" id="level-instance_method">
786
+
787
+ #<strong>level</strong> &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt> <span class="extras">(readonly)</span>
788
+
789
+
790
+
791
+
792
+
793
+ </h3><div class="docstring">
794
+ <div class="discussion">
795
+ <p>Returns the current log level (debug, info, warn, error)</p>
796
+
797
+
798
+ </div>
799
+ </div>
800
+ <div class="tags">
801
+
802
+
803
+ </div>
804
+ </div>
805
+
806
+
807
+ <span id=""></span>
808
+ <div class="method_details ">
809
+ <h3 class="signature " id="logdev=-instance_method">
810
+
811
+ #<strong>logdev=</strong>(value) &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt> <span class="extras">(writeonly)</span>
812
+
813
+
814
+
815
+
816
+
817
+ </h3><div class="docstring">
818
+ <div class="discussion">
819
+ <p>Sets the log device</p>
820
+
821
+
822
+ </div>
823
+ </div>
824
+ <div class="tags">
825
+
826
+
827
+ </div>
828
+ </div>
829
+
830
+
831
+ <span id=""></span>
832
+ <div class="method_details ">
833
+ <h3 class="signature " id="max_length=-instance_method">
834
+
835
+ #<strong>max_length=</strong>(value) &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt> <span class="extras">(writeonly)</span>
836
+
837
+
838
+
839
+
840
+
841
+ </h3><div class="docstring">
842
+ <div class="discussion">
843
+ <p>Max length of log messages (truncate in middle)</p>
844
+
845
+
846
+ </div>
847
+ </div>
848
+ <div class="tags">
849
+
850
+
851
+ </div>
852
+ </div>
853
+
854
+
855
+ <span id=""></span>
856
+ <div class="method_details ">
857
+ <h3 class="signature " id="messages-instance_method">
858
+
859
+ #<strong>messages</strong> &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt> <span class="extras">(readonly)</span>
860
+
861
+
862
+
863
+
864
+
865
+ </h3><div class="docstring">
866
+ <div class="discussion">
867
+ <p>Returns the value of attribute messages.</p>
868
+
869
+
870
+ </div>
871
+ </div>
872
+ <div class="tags">
873
+
874
+
875
+ </div>
876
+ </div>
877
+
878
+
879
+ <span id=""></span>
880
+ <div class="method_details ">
881
+ <h3 class="signature " id="results-instance_method">
882
+
883
+ #<strong>results</strong> &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt> <span class="extras">(readonly)</span>
884
+
885
+
886
+
887
+
888
+
889
+ </h3><div class="docstring">
890
+ <div class="discussion">
891
+ <p>Returns the value of attribute results.</p>
892
+
893
+
894
+ </div>
895
+ </div>
896
+ <div class="tags">
897
+
898
+
899
+ </div>
900
+ </div>
901
+
902
+ </div>
903
+
904
+
905
+ <div id="instance_method_details" class="method_details_list">
906
+ <h2>Instance Method Details</h2>
907
+
908
+
909
+ <div class="method_details first">
910
+ <h3 class="signature first" id="abort_with-instance_method">
911
+
912
+ #<strong>abort_with</strong>(topic, message = nil, &amp;block) &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
913
+
914
+
915
+
916
+
917
+
918
+ </h3><div class="docstring">
919
+ <div class="discussion">
920
+ <p>Print an error message and immediately
921
+ abort the process</p>
922
+
923
+
924
+ </div>
925
+ </div>
926
+ <div class="tags">
927
+ <p class="tag_title">Parameters:</p>
928
+ <ul class="param">
929
+
930
+ <li>
931
+
932
+ <span class='name'>topic</span>
933
+
934
+
935
+ <span class='type'></span>
936
+
937
+
938
+
939
+ &mdash;
940
+ <div class='inline'><p>the topic of the message, e.g.
941
+ &quot;Configuration file&quot;,
942
+ &quot;Deprecation&quot;, etc.</p>
943
+ </div>
944
+
945
+ </li>
946
+
947
+ <li>
948
+
949
+ <span class='name'>message</span>
950
+
951
+
952
+ <span class='type'></span>
953
+
954
+
955
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
956
+
957
+
958
+ &mdash;
959
+ <div class='inline'><p>the message detail (can be
960
+ omitted)</p>
961
+ </div>
962
+
963
+ </li>
964
+
965
+ </ul>
966
+
967
+ <p class="tag_title">Returns:</p>
968
+ <ul class="return">
969
+
970
+ <li>
971
+
972
+
973
+ <span class='type'></span>
974
+
975
+
976
+
977
+
978
+ <div class='inline'><p>nothing</p>
979
+ </div>
980
+
981
+ </li>
982
+
983
+ </ul>
984
+
985
+ </div>
986
+ </div>
987
+
988
+ <div class="method_details ">
989
+ <h3 class="signature " id="adjust_verbosity-instance_method">
990
+
991
+ #<strong>adjust_verbosity</strong>(options = {}) &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
992
+
993
+
994
+
995
+
996
+
997
+ </h3>
998
+ </div>
999
+
1000
+ <div class="method_details ">
1001
+ <h3 class="signature " id="benchmark-instance_method">
1002
+
1003
+ #<strong>benchmark</strong>(key, state) &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
1004
+
1005
+
1006
+
1007
+
1008
+
1009
+ </h3>
1010
+ </div>
1011
+
1012
+ <div class="method_details ">
1013
+ <h3 class="signature " id="count-instance_method">
1014
+
1015
+ #<strong>count</strong>(key, level: :info, count: 1, tag: nil, message: nil) &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
1016
+
1017
+
1018
+
1019
+
1020
+
1021
+ </h3><div class="docstring">
1022
+ <div class="discussion">
1023
+
1024
+
1025
+ </div>
1026
+ </div>
1027
+ <div class="tags">
1028
+
1029
+ <p class="tag_title">Raises:</p>
1030
+ <ul class="raise">
1031
+
1032
+ <li>
1033
+
1034
+
1035
+ <span class='type'>(<tt>ArgumentError</tt>)</span>
1036
+
1037
+
1038
+
1039
+ </li>
1040
+
1041
+ </ul>
1042
+
1043
+ </div>
1044
+ </div>
1045
+
1046
+ <div class="method_details ">
1047
+ <h3 class="signature " id="debug-instance_method">
1048
+
1049
+ #<strong>debug</strong>(topic, message = nil, &amp;block) &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
1050
+
1051
+
1052
+
1053
+
1054
+
1055
+ </h3><div class="docstring">
1056
+ <div class="discussion">
1057
+ <p>Print a debug message</p>
1058
+
1059
+
1060
+ </div>
1061
+ </div>
1062
+ <div class="tags">
1063
+ <p class="tag_title">Parameters:</p>
1064
+ <ul class="param">
1065
+
1066
+ <li>
1067
+
1068
+ <span class='name'>topic</span>
1069
+
1070
+
1071
+ <span class='type'></span>
1072
+
1073
+
1074
+
1075
+ &mdash;
1076
+ <div class='inline'><p>the topic of the message</p>
1077
+ </div>
1078
+
1079
+ </li>
1080
+
1081
+ <li>
1082
+
1083
+ <span class='name'>message</span>
1084
+
1085
+
1086
+ <span class='type'></span>
1087
+
1088
+
1089
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
1090
+
1091
+
1092
+ &mdash;
1093
+ <div class='inline'><p>the message detail</p>
1094
+ </div>
1095
+
1096
+ </li>
1097
+
1098
+ </ul>
1099
+
1100
+ <p class="tag_title">Returns:</p>
1101
+ <ul class="return">
1102
+
1103
+ <li>
1104
+
1105
+
1106
+ <span class='type'></span>
1107
+
1108
+
1109
+
1110
+
1111
+ <div class='inline'><p>nothing</p>
1112
+ </div>
1113
+
1114
+ </li>
1115
+
1116
+ </ul>
1117
+
1118
+ </div>
1119
+ </div>
1120
+
1121
+ <div class="method_details ">
1122
+ <h3 class="signature " id="error-instance_method">
1123
+
1124
+ #<strong>error</strong>(topic, message = nil, &amp;block) &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
1125
+
1126
+
1127
+
1128
+
1129
+
1130
+ </h3><div class="docstring">
1131
+ <div class="discussion">
1132
+ <p>Print an error message</p>
1133
+
1134
+
1135
+ </div>
1136
+ </div>
1137
+ <div class="tags">
1138
+ <p class="tag_title">Parameters:</p>
1139
+ <ul class="param">
1140
+
1141
+ <li>
1142
+
1143
+ <span class='name'>topic</span>
1144
+
1145
+
1146
+ <span class='type'></span>
1147
+
1148
+
1149
+
1150
+ &mdash;
1151
+ <div class='inline'><p>the topic of the message, e.g.
1152
+ &quot;Configuration file&quot;,
1153
+ &quot;Deprecation&quot;, etc.</p>
1154
+ </div>
1155
+
1156
+ </li>
1157
+
1158
+ <li>
1159
+
1160
+ <span class='name'>message</span>
1161
+
1162
+
1163
+ <span class='type'></span>
1164
+
1165
+
1166
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
1167
+
1168
+
1169
+ &mdash;
1170
+ <div class='inline'><p>the message detail</p>
1171
+ </div>
1172
+
1173
+ </li>
1174
+
1175
+ </ul>
1176
+
1177
+ <p class="tag_title">Returns:</p>
1178
+ <ul class="return">
1179
+
1180
+ <li>
1181
+
1182
+
1183
+ <span class='type'></span>
1184
+
1185
+
1186
+
1187
+
1188
+ <div class='inline'><p>nothing</p>
1189
+ </div>
1190
+
1191
+ </li>
1192
+
1193
+ </ul>
1194
+
1195
+ </div>
1196
+ </div>
1197
+
1198
+ <div class="method_details ">
1199
+ <h3 class="signature " id="formatted_topic-instance_method">
1200
+
1201
+ #<strong>formatted_topic</strong>(topic, colon: false) &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
1202
+
1203
+
1204
+
1205
+
1206
+
1207
+ </h3><div class="docstring">
1208
+ <div class="discussion">
1209
+ <p>Format the topic</p>
1210
+
1211
+
1212
+ </div>
1213
+ </div>
1214
+ <div class="tags">
1215
+ <p class="tag_title">Parameters:</p>
1216
+ <ul class="param">
1217
+
1218
+ <li>
1219
+
1220
+ <span class='name'>topic</span>
1221
+
1222
+
1223
+ <span class='type'></span>
1224
+
1225
+
1226
+
1227
+ &mdash;
1228
+ <div class='inline'><p>the topic of the message, e.g.
1229
+ &quot;Configuration file&quot;,
1230
+ &quot;Deprecation&quot;, etc.</p>
1231
+ </div>
1232
+
1233
+ </li>
1234
+
1235
+ <li>
1236
+
1237
+ <span class='name'>colon</span>
1238
+
1239
+
1240
+ <span class='type'></span>
1241
+
1242
+
1243
+ <em class="default">(defaults to: <tt>false</tt>)</em>
1244
+
1245
+
1246
+ &mdash;
1247
+ <div class='inline'><p>Separate with a colon?</p>
1248
+ </div>
1249
+
1250
+ </li>
1251
+
1252
+ </ul>
1253
+
1254
+ <p class="tag_title">Returns:</p>
1255
+ <ul class="return">
1256
+
1257
+ <li>
1258
+
1259
+
1260
+ <span class='type'></span>
1261
+
1262
+
1263
+
1264
+
1265
+ <div class='inline'><p>the formatted topic statement</p>
1266
+ </div>
1267
+
1268
+ </li>
1269
+
1270
+ </ul>
1271
+
1272
+ </div>
1273
+ </div>
1274
+
1275
+ <div class="method_details ">
1276
+ <h3 class="signature " id="info-instance_method">
1277
+
1278
+ #<strong>info</strong>(topic, message = nil, &amp;block) &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
1279
+
1280
+
1281
+
1282
+
1283
+
1284
+ </h3><div class="docstring">
1285
+ <div class="discussion">
1286
+ <p>Print a message</p>
1287
+
1288
+
1289
+ </div>
1290
+ </div>
1291
+ <div class="tags">
1292
+ <p class="tag_title">Parameters:</p>
1293
+ <ul class="param">
1294
+
1295
+ <li>
1296
+
1297
+ <span class='name'>topic</span>
1298
+
1299
+
1300
+ <span class='type'></span>
1301
+
1302
+
1303
+
1304
+ &mdash;
1305
+ <div class='inline'><p>the topic of the message, e.g.
1306
+ &quot;Configuration file&quot;,
1307
+ &quot;Deprecation&quot;, etc.</p>
1308
+ </div>
1309
+
1310
+ </li>
1311
+
1312
+ <li>
1313
+
1314
+ <span class='name'>message</span>
1315
+
1316
+
1317
+ <span class='type'></span>
1318
+
1319
+
1320
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
1321
+
1322
+
1323
+ &mdash;
1324
+ <div class='inline'><p>the message detail</p>
1325
+ </div>
1326
+
1327
+ </li>
1328
+
1329
+ </ul>
1330
+
1331
+ <p class="tag_title">Returns:</p>
1332
+ <ul class="return">
1333
+
1334
+ <li>
1335
+
1336
+
1337
+ <span class='type'></span>
1338
+
1339
+
1340
+
1341
+
1342
+ <div class='inline'><p>nothing</p>
1343
+ </div>
1344
+
1345
+ </li>
1346
+
1347
+ </ul>
1348
+
1349
+ </div>
1350
+ </div>
1351
+
1352
+ <div class="method_details ">
1353
+ <h3 class="signature " id="log_benchmarks-instance_method">
1354
+
1355
+ #<strong>log_benchmarks</strong> &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
1356
+
1357
+
1358
+
1359
+
1360
+
1361
+ </h3>
1362
+ </div>
1363
+
1364
+ <div class="method_details ">
1365
+ <h3 class="signature " id="log_change-instance_method">
1366
+
1367
+ #<strong>log_change</strong>(tags_added: [], tags_removed: [], count: 1, item: nil, single: false) &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
1368
+
1369
+
1370
+
1371
+
1372
+
1373
+ </h3>
1374
+ </div>
1375
+
1376
+ <div class="method_details ">
1377
+ <h3 class="signature " id="log_level=-instance_method">
1378
+
1379
+ #<strong>log_level=</strong>(level = &#39;info&#39;) &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
1380
+
1381
+
1382
+
1383
+
1384
+
1385
+ </h3><div class="docstring">
1386
+ <div class="discussion">
1387
+ <p>Set the log level on the writer</p>
1388
+
1389
+
1390
+ </div>
1391
+ </div>
1392
+ <div class="tags">
1393
+ <p class="tag_title">Parameters:</p>
1394
+ <ul class="param">
1395
+
1396
+ <li>
1397
+
1398
+ <span class='name'>level</span>
1399
+
1400
+
1401
+ <span class='type'>(<tt>symbol</tt>)</span>
1402
+
1403
+
1404
+ <em class="default">(defaults to: <tt>&#39;info&#39;</tt>)</em>
1405
+
1406
+
1407
+ &mdash;
1408
+ <div class='inline'><p>the log level</p>
1409
+ </div>
1410
+
1411
+ </li>
1412
+
1413
+ </ul>
1414
+
1415
+ <p class="tag_title">Returns:</p>
1416
+ <ul class="return">
1417
+
1418
+ <li>
1419
+
1420
+
1421
+ <span class='type'></span>
1422
+
1423
+
1424
+
1425
+
1426
+ <div class='inline'><p>nothing</p>
1427
+ </div>
1428
+
1429
+ </li>
1430
+
1431
+ </ul>
1432
+
1433
+ </div>
1434
+ </div>
1435
+
1436
+ <div class="method_details ">
1437
+ <h3 class="signature " id="log_now-instance_method">
1438
+
1439
+ #<strong>log_now</strong>(level, topic, message = nil, &amp;block) &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
1440
+
1441
+
1442
+
1443
+
1444
+
1445
+ </h3><div class="docstring">
1446
+ <div class="discussion">
1447
+ <p>Log to console immediately instead of writing messages on exit</p>
1448
+
1449
+
1450
+ </div>
1451
+ </div>
1452
+ <div class="tags">
1453
+ <p class="tag_title">Parameters:</p>
1454
+ <ul class="param">
1455
+
1456
+ <li>
1457
+
1458
+ <span class='name'>level</span>
1459
+
1460
+
1461
+ <span class='type'>(<tt><span class='object_link'><a href="../Symbol.html" title="Symbol (class)">Symbol</a></span></tt>)</span>
1462
+
1463
+
1464
+
1465
+ &mdash;
1466
+ <div class='inline'><p>The level</p>
1467
+ </div>
1468
+
1469
+ </li>
1470
+
1471
+ <li>
1472
+
1473
+ <span class='name'>topic</span>
1474
+
1475
+
1476
+ <span class='type'>(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
1477
+
1478
+
1479
+
1480
+ &mdash;
1481
+ <div class='inline'><p>The topic or full message</p>
1482
+ </div>
1483
+
1484
+ </li>
1485
+
1486
+ <li>
1487
+
1488
+ <span class='name'>message</span>
1489
+
1490
+
1491
+ <span class='type'>(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
1492
+
1493
+
1494
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
1495
+
1496
+
1497
+ &mdash;
1498
+ <div class='inline'><p>The message (optional)</p>
1499
+ </div>
1500
+
1501
+ </li>
1502
+
1503
+ <li>
1504
+
1505
+ <span class='name'>block</span>
1506
+
1507
+
1508
+ <span class='type'></span>
1509
+
1510
+
1511
+
1512
+ &mdash;
1513
+ <div class='inline'><p>a block containing the message (optional)</p>
1514
+ </div>
1515
+
1516
+ </li>
1517
+
1518
+ </ul>
1519
+
1520
+
1521
+ </div>
1522
+ </div>
1523
+
1524
+ <div class="method_details ">
1525
+ <h3 class="signature " id="output_results-instance_method">
1526
+
1527
+ #<strong>output_results</strong> &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
1528
+
1529
+
1530
+
1531
+
1532
+
1533
+ </h3><div class="docstring">
1534
+ <div class="discussion">
1535
+ <p>Output registers based on log level</p>
1536
+
1537
+
1538
+ </div>
1539
+ </div>
1540
+ <div class="tags">
1541
+
1542
+ <p class="tag_title">Returns:</p>
1543
+ <ul class="return">
1544
+
1545
+ <li>
1546
+
1547
+
1548
+ <span class='type'></span>
1549
+
1550
+
1551
+
1552
+
1553
+ <div class='inline'><p>nothing</p>
1554
+ </div>
1555
+
1556
+ </li>
1557
+
1558
+ </ul>
1559
+
1560
+ </div>
1561
+ </div>
1562
+
1563
+ <div class="method_details ">
1564
+ <h3 class="signature " id="restore_level-instance_method">
1565
+
1566
+ #<strong>restore_level</strong> &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
1567
+
1568
+
1569
+
1570
+
1571
+
1572
+ </h3><div class="docstring">
1573
+ <div class="discussion">
1574
+ <p>Restore temporary level</p>
1575
+
1576
+
1577
+ </div>
1578
+ </div>
1579
+ <div class="tags">
1580
+
1581
+
1582
+ </div>
1583
+ </div>
1584
+
1585
+ <div class="method_details ">
1586
+ <h3 class="signature " id="temp_level-instance_method">
1587
+
1588
+ #<strong>temp_level</strong>(level) &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
1589
+
1590
+
1591
+
1592
+
1593
+
1594
+ </h3><div class="docstring">
1595
+ <div class="discussion">
1596
+ <p>Set log level temporarily</p>
1597
+
1598
+
1599
+ </div>
1600
+ </div>
1601
+ <div class="tags">
1602
+
1603
+
1604
+ </div>
1605
+ </div>
1606
+
1607
+ <div class="method_details ">
1608
+ <h3 class="signature " id="warn-instance_method">
1609
+
1610
+ #<strong>warn</strong>(topic, message = nil, &amp;block) &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
1611
+
1612
+
1613
+
1614
+
1615
+
1616
+ </h3><div class="docstring">
1617
+ <div class="discussion">
1618
+ <p>Print a message</p>
1619
+
1620
+
1621
+ </div>
1622
+ </div>
1623
+ <div class="tags">
1624
+ <p class="tag_title">Parameters:</p>
1625
+ <ul class="param">
1626
+
1627
+ <li>
1628
+
1629
+ <span class='name'>topic</span>
1630
+
1631
+
1632
+ <span class='type'></span>
1633
+
1634
+
1635
+
1636
+ &mdash;
1637
+ <div class='inline'><p>the topic of the message, e.g.
1638
+ &quot;Configuration file&quot;,
1639
+ &quot;Deprecation&quot;, etc.</p>
1640
+ </div>
1641
+
1642
+ </li>
1643
+
1644
+ <li>
1645
+
1646
+ <span class='name'>message</span>
1647
+
1648
+
1649
+ <span class='type'></span>
1650
+
1651
+
1652
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
1653
+
1654
+
1655
+ &mdash;
1656
+ <div class='inline'><p>the message detail</p>
1657
+ </div>
1658
+
1659
+ </li>
1660
+
1661
+ </ul>
1662
+
1663
+ <p class="tag_title">Returns:</p>
1664
+ <ul class="return">
1665
+
1666
+ <li>
1667
+
1668
+
1669
+ <span class='type'></span>
1670
+
1671
+
1672
+
1673
+
1674
+ <div class='inline'><p>nothing</p>
1675
+ </div>
1676
+
1677
+ </li>
1678
+
1679
+ </ul>
1680
+
1681
+ </div>
1682
+ </div>
1683
+
1684
+ <div class="method_details ">
1685
+ <h3 class="signature " id="write-instance_method">
1686
+
1687
+ #<strong>write</strong>(level_of_message, topic, message = nil, &amp;block) &#x21d2; <tt>Boolean</tt>
1688
+
1689
+
1690
+
1691
+
1692
+
1693
+ </h3><div class="docstring">
1694
+ <div class="discussion">
1695
+ <p>Log a message.</p>
1696
+
1697
+
1698
+ </div>
1699
+ </div>
1700
+ <div class="tags">
1701
+ <p class="tag_title">Parameters:</p>
1702
+ <ul class="param">
1703
+
1704
+ <li>
1705
+
1706
+ <span class='name'>level_of_message</span>
1707
+
1708
+
1709
+ <span class='type'>(<tt><span class='object_link'><a href="../Symbol.html" title="Symbol (class)">Symbol</a></span></tt>)</span>
1710
+
1711
+
1712
+
1713
+ &mdash;
1714
+ <div class='inline'><p>the Symbol
1715
+ level of message, one of
1716
+ :debug, :info, :warn,
1717
+ :error</p>
1718
+ </div>
1719
+
1720
+ </li>
1721
+
1722
+ <li>
1723
+
1724
+ <span class='name'>topic</span>
1725
+
1726
+
1727
+ <span class='type'>(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
1728
+
1729
+
1730
+
1731
+ &mdash;
1732
+ <div class='inline'><p>the String
1733
+ topic or full message</p>
1734
+ </div>
1735
+
1736
+ </li>
1737
+
1738
+ <li>
1739
+
1740
+ <span class='name'>message</span>
1741
+
1742
+
1743
+ <span class='type'>(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
1744
+
1745
+
1746
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
1747
+
1748
+
1749
+ &mdash;
1750
+ <div class='inline'><p>the String
1751
+ message (optional)</p>
1752
+ </div>
1753
+
1754
+ </li>
1755
+
1756
+ <li>
1757
+
1758
+ <span class='name'>block</span>
1759
+
1760
+
1761
+ <span class='type'></span>
1762
+
1763
+
1764
+
1765
+ &mdash;
1766
+ <div class='inline'><p>a block containing the
1767
+ message (optional)</p>
1768
+ </div>
1769
+
1770
+ </li>
1771
+
1772
+ </ul>
1773
+
1774
+ <p class="tag_title">Returns:</p>
1775
+ <ul class="return">
1776
+
1777
+ <li>
1778
+
1779
+
1780
+ <span class='type'>(<tt>Boolean</tt>)</span>
1781
+
1782
+
1783
+
1784
+ &mdash;
1785
+ <div class='inline'><p>false if the message was not written</p>
1786
+ </div>
1787
+
1788
+ </li>
1789
+
1790
+ </ul>
1791
+
1792
+ </div>
1793
+ </div>
1794
+
1795
+ </div>
1796
+
1797
+ </div>
1798
+
1799
+ <div id="footer">
1800
+ Generated on Mon Feb 21 14:59:53 2022 by
1801
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1802
+ 0.9.27 (ruby-3.0.1).
1803
+ </div>
1804
+
1805
+ </div>
1806
+ </body>
1807
+ </html>