mr_loga_loga 0.1.1 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +2 -0
  3. data/.github/workflows/release.yml +3 -3
  4. data/.gitignore +1 -0
  5. data/.yardopts +1 -0
  6. data/CHANGELOG.md +38 -0
  7. data/Gemfile +1 -1
  8. data/Gemfile.lock +13 -9
  9. data/README.md +10 -7
  10. data/docs/MrLogaLoga/Configuration.html +376 -0
  11. data/docs/MrLogaLoga/Context.html +628 -0
  12. data/docs/MrLogaLoga/Error.html +124 -0
  13. data/docs/MrLogaLoga/Extensions/LogrageExtension.html +305 -0
  14. data/docs/MrLogaLoga/Extensions/RailsExtension/LoggerPatch.html +322 -0
  15. data/docs/MrLogaLoga/Extensions/RailsExtension/ServerPatch.html +201 -0
  16. data/docs/MrLogaLoga/Extensions/RailsExtension.html +242 -0
  17. data/docs/MrLogaLoga/Extensions.html +117 -0
  18. data/docs/MrLogaLoga/Formatters/Json.html +350 -0
  19. data/docs/MrLogaLoga/Formatters/KeyValue.html +338 -0
  20. data/docs/MrLogaLoga/Formatters.html +117 -0
  21. data/docs/MrLogaLoga/InstanceMethods.html +350 -0
  22. data/docs/MrLogaLoga/Logger.html +618 -0
  23. data/docs/MrLogaLoga/LoggerProxy.html +319 -0
  24. data/docs/MrLogaLoga.html +374 -0
  25. data/docs/_config.yml +1 -0
  26. data/docs/_index.html +280 -0
  27. data/docs/class_list.html +51 -0
  28. data/docs/css/common.css +1 -0
  29. data/docs/css/full_list.css +58 -0
  30. data/docs/css/style.css +497 -0
  31. data/docs/file.README.html +255 -0
  32. data/docs/file_list.html +56 -0
  33. data/docs/frames.html +17 -0
  34. data/docs/index.html +255 -0
  35. data/docs/js/app.js +314 -0
  36. data/docs/js/full_list.js +216 -0
  37. data/docs/js/jquery.js +4 -0
  38. data/docs/method_list.html +283 -0
  39. data/docs/top-level-namespace.html +110 -0
  40. data/lib/mr_loga_loga/context.rb +10 -0
  41. data/lib/mr_loga_loga/extensions/{lograge_patch.rb → lograge.rb} +19 -6
  42. data/lib/mr_loga_loga/extensions/rails.rb +154 -0
  43. data/lib/mr_loga_loga/formatters/json.rb +3 -3
  44. data/lib/mr_loga_loga/formatters/key_value.rb +1 -0
  45. data/lib/mr_loga_loga/instance_methods.rb +7 -1
  46. data/lib/mr_loga_loga/logger.rb +3 -5
  47. data/lib/mr_loga_loga/version.rb +1 -1
  48. data/lib/mr_loga_loga.rb +3 -3
  49. data/mr_loga_loga.gemspec +3 -2
  50. metadata +54 -8
  51. data/lib/mr_loga_loga/extensions/active_support_logger_patch.rb +0 -94
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 96771984713e671c4d386e6f2736e7f5fd1e929912a8536f735df46f5df80de1
4
- data.tar.gz: 636178d39697f664b5093b49758c478a5dc3739bfceadf03d092ebd777c5d861
3
+ metadata.gz: 7e845c29baf41dd825382341572e40afa84fcd65dac1373bd59ba5f973903b83
4
+ data.tar.gz: 033c3b960404c5661fe1c0d2a198da5c4cee99b7aeeb1cacc47f6191594ff24d
5
5
  SHA512:
6
- metadata.gz: cee5fb5dd81654e5f32fdcc061a23de27e93b6f3dd5d514f2e8a0009b71a795014dc7b4077c4129c614ac96b26369e80e217e8dea25c56c9009d765b92204d7a
7
- data.tar.gz: d53465a1153ab221eb2b4039dd987dc56ced93a0ece700fd653f7464bc95f5975a69f6e71cc894c3e3b6d03593c2e45b8be21f6a345304ef8286b97d3fd669a1
6
+ metadata.gz: f69fb74275963243bb371c2ed23003a5cc708d684723e60bff89c92677165143ac0092e79d548f8832fd0b3d3b34cbf840dc0be97e3c3a4325f47c5780892619
7
+ data.tar.gz: 10f59c45ff3b10909708444c46ec226bacbe560f7ded4e591983ca1f4f156a8bb5c7fd0aad85f51c68e7c07fcda0fb10566c0fcdec0c13cdd44c628a9e251c9c
data/.codeclimate.yml ADDED
@@ -0,0 +1,2 @@
1
+ exclude_patterns:
2
+ - "docs/"
@@ -19,7 +19,7 @@ jobs:
19
19
  steps:
20
20
  - uses: actions/checkout@v2
21
21
  - name: Generate Release 🗒️
22
- uses: GoogleCloudPlatform/release-please-action@v2
22
+ uses: GoogleCloudPlatform/release-please-action@v3
23
23
  id: release
24
24
  with:
25
25
  release-type: ruby
@@ -73,7 +73,7 @@ jobs:
73
73
  RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
74
74
 
75
75
  - name: Commit Updated Files 📤
76
- uses: EndBug/add-and-commit@v7
76
+ uses: EndBug/add-and-commit@v8.0.1
77
77
  with:
78
- add: "['Gemfile.lock', 'package.json', 'package-lock.json']"
78
+ add: "['Gemfile.lock', 'lib/mr_loga_loga/version.rb']"
79
79
  message: "chore: post-release ${{ steps.release-version.outputs.version }}"
data/.gitignore CHANGED
@@ -188,3 +188,4 @@ tags
188
188
  # End of https://www.toptal.com/developers/gitignore/api/vim,rubymine+all,rails
189
189
 
190
190
  .rspec_status
191
+ .yardoc
data/.yardopts ADDED
@@ -0,0 +1 @@
1
+ --output-dir docs
data/CHANGELOG.md CHANGED
@@ -1,5 +1,43 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ### [0.1.5](https://github.com/hschne/mr-loga-loga/compare/v0.1.4...v0.1.5) (2022-01-25)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * error for server command patch ([#11](https://github.com/hschne/mr-loga-loga/issues/11)) ([5c560fa](https://github.com/hschne/mr-loga-loga/commit/5c560fae8e917c1921343aed56dbe25da82a1735))
9
+
10
+ ### [0.1.4](https://github.com/hschne/mr-loga-loga/compare/v0.1.3...v0.1.4) (2022-01-22)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * error formatting for keyvalue formatter, fixes [#7](https://github.com/hschne/mr-loga-loga/issues/7) ([a64d822](https://github.com/hschne/mr-loga-loga/commit/a64d8225691d55e1eb42df57afcb950d76f5f59b))
16
+
17
+ ### [0.1.3](https://github.com/hschne/mr-loga-loga/compare/v0.1.2...v0.1.3) (2022-01-14)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * json formatter errors ([874f3dd](https://github.com/hschne/mr-loga-loga/commit/874f3dd480e05792712495eb6b7c77c35474adc1))
23
+
24
+ ### [0.1.2](https://github.com/hschne/mr-loga-loga/compare/v0.1.1...v0.1.2) (2022-01-05)
25
+
26
+
27
+ ### Bug Fixes
28
+
29
+ * improve rails patch ([a31cdf1](https://github.com/hschne/mr-loga-loga/commit/a31cdf1b655bfaeb2351bff818ca0af83293ace5))
30
+ * only delegate when logger is loga loga ([55bd0db](https://github.com/hschne/mr-loga-loga/commit/55bd0dbdee5b975c80effac90e989eb08d2b6948))
31
+
32
+ ### [0.1.1](https://www.github.com/hschne/mr-loga-loga/compare/v0.1.0...v0.1.1) (2022-01-03)
33
+
34
+
35
+ ### Bug Fixes
36
+
37
+ * rails compatibility ([81619ef](https://www.github.com/hschne/mr-loga-loga/commit/81619ef76d772ac05eb78daf3714794d345af587))
38
+ * remove byebug, patch rails, fix logger proxy ([38caf62](https://www.github.com/hschne/mr-loga-loga/commit/38caf625304449e128e9201aeeaf79d24798aa7d))
39
+ * update initializer signature ([bdd8b72](https://www.github.com/hschne/mr-loga-loga/commit/bdd8b7269111550ff9e2e5e3c6344d6c83707099))
40
+
3
41
  ## [0.1.0] - 2021-11-12
4
42
 
5
43
  - Initial release
data/Gemfile CHANGED
@@ -9,4 +9,4 @@ gem 'rake', '~> 13.0'
9
9
 
10
10
  gem 'rspec', '~> 3.0'
11
11
 
12
- gem 'rubocop', '~> 1.7'
12
+ gem 'rubocop', '~> 1.25'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mr_loga_loga (0.1.1)
4
+ mr_loga_loga (0.1.5)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -10,9 +10,9 @@ GEM
10
10
  diff-lcs (1.4.4)
11
11
  docile (1.4.0)
12
12
  parallel (1.21.0)
13
- parser (3.0.3.2)
13
+ parser (3.1.0.0)
14
14
  ast (~> 2.4.1)
15
- rainbow (3.0.0)
15
+ rainbow (3.1.1)
16
16
  rake (13.0.6)
17
17
  regexp_parser (2.2.0)
18
18
  rexml (3.2.5)
@@ -29,13 +29,13 @@ GEM
29
29
  diff-lcs (>= 1.2.0, < 2.0)
30
30
  rspec-support (~> 3.10.0)
31
31
  rspec-support (3.10.3)
32
- rubocop (1.24.0)
32
+ rubocop (1.25.0)
33
33
  parallel (~> 1.10)
34
- parser (>= 3.0.0.0)
34
+ parser (>= 3.1.0.0)
35
35
  rainbow (>= 2.2.2, < 4.0)
36
36
  regexp_parser (>= 1.8, < 3.0)
37
37
  rexml
38
- rubocop-ast (>= 1.15.0, < 2.0)
38
+ rubocop-ast (>= 1.15.1, < 2.0)
39
39
  ruby-progressbar (~> 1.7)
40
40
  unicode-display_width (>= 1.4.0, < 3.0)
41
41
  rubocop-ast (1.15.1)
@@ -49,6 +49,9 @@ GEM
49
49
  simplecov_json_formatter (0.1.3)
50
50
  timecop (0.9.4)
51
51
  unicode-display_width (2.1.0)
52
+ webrick (1.7.0)
53
+ yard (0.9.27)
54
+ webrick (~> 1.7.0)
52
55
 
53
56
  PLATFORMS
54
57
  x86_64-linux
@@ -57,9 +60,10 @@ DEPENDENCIES
57
60
  mr_loga_loga!
58
61
  rake (~> 13.0)
59
62
  rspec (~> 3.0)
60
- rubocop (~> 1.7)
61
- simplecov (~> 0.21.2)
62
- timecop (~> 0.9.4)
63
+ rubocop (~> 1.25)
64
+ simplecov (~> 0.21)
65
+ timecop (~> 0.9)
66
+ yard (~> 0.9)
63
67
 
64
68
  BUNDLED WITH
65
69
  2.2.26
data/README.md CHANGED
@@ -9,18 +9,22 @@
9
9
  [![Gem Version](https://badge.fury.io/rb/mr_loga_loga.svg)](https://badge.fury.io/rb/mr_loga_loga)
10
10
  [![Main](https://github.com/hschne/mr-loga-loga/actions/workflows/main.yml/badge.svg)](https://github.com/hschne/mr-loga-loga/actions/workflows/main.yml)
11
11
  ![License](https://img.shields.io/github/license/hschne/mr-loga-loga)
12
+
13
+ [![Maintainability](https://api.codeclimate.com/v1/badges/7cdd4779e6c62bce6ba0/maintainability)](https://codeclimate.com/github/hschne/mr-loga-loga/maintainability)
14
+ [![Test Coverage](https://api.codeclimate.com/v1/badges/7cdd4779e6c62bce6ba0/test_coverage)](https://codeclimate.com/github/hschne/mr-loga-loga/test_coverage)
12
15
  </div>
13
16
 
14
17
  ## What's this?
15
18
 
16
- MrLogaLoga is a logger for Ruby that allows you to easily attach contextual information to your log messages. When writing logs, messages only tell half the story. MrLogaLoga allows you to make the most of your logs:
19
+ MrLogaLoga is a logger for Ruby that allows you to easily attach contextual information to your log messages.
20
+ When writing logs, messages only tell half the story. MrLogaLoga allows you to make the most of your logs.
17
21
 
18
22
  ```ruby
19
23
  logger.info('message', user: 'name', data: 1)
20
24
  # I, [2022-01-01T12:00:00.000000 #19074] INFO -- Main: message user=user data=1
21
25
  ```
22
26
 
23
- You can find out more about the motivation behind the project [here](#why-mrlogaloga). For usage read [Usage](#usage) or [Advanced Usage](#advanced-usage)
27
+ You can find out more about the motivation behind the project [here](#why-mrlogaloga). For usage read [Usage](#usage) or [Advanced Usage](#advanced-usage).
24
28
 
25
29
  **Note**: This gem is in early development. Try it out and leave some feedback, it really goes a long way in helping me out with development. Any [feature request](https://github.com/hschne/mr-loga-loga/issues/new?assignees=&labels=type%3ABug&template=FEATURE_REQUEST.md&title=) or [bug report](https://github.com/hschne/mr-loga-loga/issues/new?assignees=&labels=type%3AEnhancement&template=BUG_REPORT.md&title=) is welcome. If you like this project, leave a star to show your support! ⭐
26
30
 
@@ -40,7 +44,7 @@ bundle install
40
44
 
41
45
  ## Usage
42
46
 
43
- MrLogaLoga provides the same interface as the Ruby default logger you are used to. In addition, however, you can attach contextual information to your log messages:
47
+ MrLogaLoga provides the same interface as the Ruby default logger you are used to. In addition, however, you can attach contextual information to your log messages.
44
48
 
45
49
  ```ruby
46
50
  require 'mr_loga_loga'
@@ -66,7 +70,7 @@ logger.user('name').info('message') # Dynamic context method
66
70
  logger.user { 'name' }.info('message') # Dynamic context block
67
71
  ```
68
72
 
69
- The block syntax [ is recommended when logging calculated properties ](https://ruby-doc.org/stdlib-2.4.0/libdoc/logger/rdoc/Logger.html#class-Logger-label-How+to+log+a+message).
73
+ The block syntax [ is recommended when logging calculated properties ](https://ruby-doc.org/stdlib-2.4.0/libdoc/logger/rdoc/Logger.html#class-Logger-label-How+to+log+a+message). You can find more in-depth information about specific method in the [Code Documentation](https://www.hschne.at/mr-loga-loga/).
70
74
 
71
75
  #### Shared Context
72
76
 
@@ -112,7 +116,6 @@ class MyClass
112
116
  end
113
117
  ```
114
118
 
115
-
116
119
  ### Formatters
117
120
 
118
121
  MrLogaLoga uses the [KeyValue](https://github.com/hschne/mr-loga-loga/blob/main/lib/mr_loga_loga/formatters/key_value.rb) formatter per default. The [Json](https://github.com/hschne/mr-loga-loga/blob/main/lib/mr_loga_loga/formatters/json.rb) formatter is also included. To use a specific formatter pass it to the logger constructor:
@@ -126,7 +129,7 @@ You can implement and add your own formatters like so:
126
129
 
127
130
  ```ruby
128
131
  class MyFormatter
129
- def call(severity, datetime, progname, message, context)
132
+ def call(severity, datetime, progname, message, **context)
130
133
  context = context.map { |key, value| "#{key}=#{value}" }.compact.join(' ')
131
134
  "#{severity} #{datetime.strftime('%Y-%m-%dT%H:%M:%S.%6N')} #{progname} #{message} #{context}"
132
135
  end
@@ -186,7 +189,7 @@ Thank you for contributing! :heart:
186
189
 
187
190
  We welcome all support, whether on bug reports, code, design, reviews, tests, documentation, translations, or just feature requests.
188
191
 
189
- Please use [GitHub issues](https://github.com/hschne/rails-mini-profiler/issues) to submit bugs or feature requests.
192
+ Please use [GitHub issues](https://github.com/hschne/mr-loga-loga/issues) to submit bugs or feature requests.
190
193
 
191
194
  ## License
192
195
 
@@ -0,0 +1,376 @@
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: MrLogaLoga::Configuration
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 = "MrLogaLoga::Configuration";
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 (C)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../MrLogaLoga.html" title="MrLogaLoga (module)">MrLogaLoga</a></span></span>
41
+ &raquo;
42
+ <span class="title">Configuration</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: MrLogaLoga::Configuration
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName">Object</span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next">MrLogaLoga::Configuration</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/mr_loga_loga/configuration.rb</dd>
98
+ </dl>
99
+
100
+ </div>
101
+
102
+ <h2>Overview</h2><div class="docstring">
103
+ <div class="discussion">
104
+
105
+ <h2 id="label-Description">Description</h2>
106
+
107
+ <p>The configuration class for MrLogaLoga</p>
108
+
109
+ <h2 id="label-Usage">Usage</h2>
110
+
111
+ <pre class="code ruby"><code class="ruby">MrLogaLoga.configure do |configuration|
112
+ configuration.logger = ...
113
+ end
114
+ </code></pre>
115
+
116
+
117
+ </div>
118
+ </div>
119
+ <div class="tags">
120
+
121
+
122
+ </div>
123
+
124
+
125
+
126
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
127
+ <ul class="summary">
128
+
129
+ <li class="public ">
130
+ <span class="summary_signature">
131
+
132
+ <a href="#logger-instance_method" title="#logger (instance method)">#<strong>logger</strong> &#x21d2; Object </a>
133
+
134
+
135
+
136
+ </span>
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+ <span class="summary_desc"><div class='inline'>
150
+ <p>Returns the value of attribute logger.</p>
151
+ </div></span>
152
+
153
+ </li>
154
+
155
+
156
+ </ul>
157
+
158
+
159
+
160
+
161
+
162
+ <h2>
163
+ Instance Method Summary
164
+ <small><a href="#" class="summary_toggle">collapse</a></small>
165
+ </h2>
166
+
167
+ <ul class="summary">
168
+
169
+ <li class="public ">
170
+ <span class="summary_signature">
171
+
172
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(**kwargs) &#x21d2; Configuration </a>
173
+
174
+
175
+
176
+ </span>
177
+
178
+
179
+ <span class="note title constructor">constructor</span>
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+ <span class="summary_desc"><div class='inline'>
189
+ <p>Initialize the configuration by setting configuration default values.</p>
190
+ </div></span>
191
+
192
+ </li>
193
+
194
+
195
+ <li class="public ">
196
+ <span class="summary_signature">
197
+
198
+ <a href="#reset-instance_method" title="#reset (instance method)">#<strong>reset</strong> &#x21d2; Object </a>
199
+
200
+
201
+
202
+ </span>
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+
212
+ <span class="summary_desc"><div class='inline'>
213
+ <p>Reset the configuration to default values.</p>
214
+ </div></span>
215
+
216
+ </li>
217
+
218
+
219
+ </ul>
220
+
221
+
222
+ <div id="constructor_details" class="method_details_list">
223
+ <h2>Constructor Details</h2>
224
+
225
+ <div class="method_details first">
226
+ <h3 class="signature first" id="initialize-instance_method">
227
+
228
+ #<strong>initialize</strong>(**kwargs) &#x21d2; <tt><span class='object_link'><a href="" title="MrLogaLoga::Configuration (class)">Configuration</a></span></tt>
229
+
230
+
231
+
232
+
233
+
234
+ </h3><div class="docstring">
235
+ <div class="discussion">
236
+
237
+ <p>Initialize the configuration by setting configuration default values</p>
238
+
239
+
240
+ </div>
241
+ </div>
242
+ <div class="tags">
243
+
244
+
245
+ </div><table class="source_code">
246
+ <tr>
247
+ <td>
248
+ <pre class="lines">
249
+
250
+
251
+ 17
252
+ 18
253
+ 19
254
+ 20</pre>
255
+ </td>
256
+ <td>
257
+ <pre class="code"><span class="info file"># File 'lib/mr_loga_loga/configuration.rb', line 17</span>
258
+
259
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='op'>**</span><span class='id identifier rubyid_kwargs'>kwargs</span><span class='rparen'>)</span>
260
+ <span class='id identifier rubyid_reset'>reset</span>
261
+ <span class='id identifier rubyid_kwargs'>kwargs</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='op'>|</span> <span class='id identifier rubyid_instance_variable_set'>instance_variable_set</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>@</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_key'>key</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
262
+ <span class='kw'>end</span></pre>
263
+ </td>
264
+ </tr>
265
+ </table>
266
+ </div>
267
+
268
+ </div>
269
+
270
+ <div id="instance_attr_details" class="attr_details">
271
+ <h2>Instance Attribute Details</h2>
272
+
273
+
274
+ <span id="logger=-instance_method"></span>
275
+ <div class="method_details first">
276
+ <h3 class="signature first" id="logger-instance_method">
277
+
278
+ #<strong>logger</strong> &#x21d2; <tt>Object</tt>
279
+
280
+
281
+
282
+
283
+
284
+ </h3><div class="docstring">
285
+ <div class="discussion">
286
+
287
+ <p>Returns the value of attribute logger.</p>
288
+
289
+
290
+ </div>
291
+ </div>
292
+ <div class="tags">
293
+
294
+
295
+ </div><table class="source_code">
296
+ <tr>
297
+ <td>
298
+ <pre class="lines">
299
+
300
+
301
+ 14
302
+ 15
303
+ 16</pre>
304
+ </td>
305
+ <td>
306
+ <pre class="code"><span class="info file"># File 'lib/mr_loga_loga/configuration.rb', line 14</span>
307
+
308
+ <span class='kw'>def</span> <span class='id identifier rubyid_logger'>logger</span>
309
+ <span class='ivar'>@logger</span>
310
+ <span class='kw'>end</span></pre>
311
+ </td>
312
+ </tr>
313
+ </table>
314
+ </div>
315
+
316
+ </div>
317
+
318
+
319
+ <div id="instance_method_details" class="method_details_list">
320
+ <h2>Instance Method Details</h2>
321
+
322
+
323
+ <div class="method_details first">
324
+ <h3 class="signature first" id="reset-instance_method">
325
+
326
+ #<strong>reset</strong> &#x21d2; <tt>Object</tt>
327
+
328
+
329
+
330
+
331
+
332
+ </h3><div class="docstring">
333
+ <div class="discussion">
334
+
335
+ <p>Reset the configuration to default values</p>
336
+
337
+
338
+ </div>
339
+ </div>
340
+ <div class="tags">
341
+
342
+
343
+ </div><table class="source_code">
344
+ <tr>
345
+ <td>
346
+ <pre class="lines">
347
+
348
+
349
+ 23
350
+ 24
351
+ 25</pre>
352
+ </td>
353
+ <td>
354
+ <pre class="code"><span class="info file"># File 'lib/mr_loga_loga/configuration.rb', line 23</span>
355
+
356
+ <span class='kw'>def</span> <span class='id identifier rubyid_reset'>reset</span>
357
+ <span class='ivar'>@logger</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../MrLogaLoga.html" title="MrLogaLoga (module)">MrLogaLoga</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Logger.html" title="MrLogaLoga::Logger (class)">Logger</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Logger.html#initialize-instance_method" title="MrLogaLoga::Logger#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='gvar'>$stdout</span><span class='rparen'>)</span>
358
+ <span class='kw'>end</span></pre>
359
+ </td>
360
+ </tr>
361
+ </table>
362
+ </div>
363
+
364
+ </div>
365
+
366
+ </div>
367
+
368
+ <div id="footer">
369
+ Generated on Wed Jan 5 09:59:09 2022 by
370
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
371
+ 0.9.27 (ruby-3.0.0).
372
+ </div>
373
+
374
+ </div>
375
+ </body>
376
+ </html>