Module: RubyWasm
- Defined in:
- lib/ruby_wasm.rb,
lib/ruby_wasm/cli.rb,
lib/ruby_wasm/util.rb,
lib/ruby_wasm/version.rb,
lib/ruby_wasm/build/target.rb,
lib/ruby_wasm/build/executor.rb,
lib/ruby_wasm/build/toolchain.rb,
lib/ruby_wasm/build/downloader.rb,
lib/ruby_wasm/build/build_params.rb,
lib/ruby_wasm/build/product/zlib.rb,
lib/ruby_wasm/build/product/libyaml.rb,
lib/ruby_wasm/build/product/openssl.rb,
lib/ruby_wasm/build/product/product.rb,
lib/ruby_wasm/build/product/baseruby.rb,
lib/ruby_wasm/build/product/wasi_vfs.rb,
lib/ruby_wasm/build/product/crossruby.rb,
lib/ruby_wasm/build/product/ruby_source.rb,
lib/ruby_wasm/build/toolchain/wit_bindgen.rb
Defined Under Namespace
Modules: SizeFormatter Classes: AutoconfProduct, BaseRubyProduct, Build, BuildExecutor, BuildParams, BuildProduct, BuildSource, BuildTask, CLI, CrossRubyExtProduct, CrossRubyProduct, Downloader, Emscripten, FeatureSet, LibYAMLProduct, OpenSSLProduct, Packager, StatusPrinter, Target, Toolchain, WASISDK, WasiVfsProduct, WitBindgen, ZlibProduct
Constant Summary collapse
- VERSION =
"2.7.0"
Class Attribute Summary collapse
-
.log_level ⇒ Object
Returns the value of attribute log_level.
Class Method Summary collapse
Class Attribute Details
.log_level ⇒ Object
Returns the value of attribute log_level.
14 15 16 |
# File 'lib/ruby_wasm.rb', line 14 def log_level @log_level end |
Class Method Details
.logger ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/ruby_wasm.rb', line 16 def logger @logger ||= begin logger = Logger.new( $stderr, level: @log_level || Logger::INFO, progname: "rbwasm" ) logger.formatter = proc { |severity, datetime, progname, msg| "#{severity}: #{msg}\n" } logger end end |
.logger=(logger) ⇒ Object
31 32 33 |
# File 'lib/ruby_wasm.rb', line 31 def logger=(logger) @logger = logger end |