Module: Logger2r
- Defined in:
- lib/logger2r/version.rb,
lib/logger2r.rb
Overview
Copyright © 2017 Szymon Kopciewski
This file is part of Logger2r.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <www.gnu.org/licenses/>.
Constant Summary collapse
- DEFAULT_CONFIG =
{ severity_level: :error, device: nil, progname: nil, datetime_format: nil, formatter_class: nil }.freeze
- VERSION =
"1.0.6"
Class Attribute Summary collapse
-
.config_file ⇒ Object
writeonly
Sets the attribute config_file.
Class Method Summary collapse
Class Attribute Details
.config_file=(value) ⇒ Object (writeonly)
Sets the attribute config_file
35 36 37 |
# File 'lib/logger2r.rb', line 35 def config_file=(value) @config_file = value end |
Class Method Details
.for_class(class_name) ⇒ Object
37 38 39 40 |
# File 'lib/logger2r.rb', line 37 def for_class(class_name) config = get_config_for_class(class_name) create_logger_for_config(config) end |