Sha256: 94b9580a8be093c22d24ec2295c9c603d4234fc61918533fc62b2450d47bf131

Contents?: true

Size: 1.31 KB

Versions: 7

Compression:

Stored size: 1.31 KB

Contents

# :stopdoc:
# Copyright (c) 2023 M.J.N. Corino, The Netherlands
#
# This software is released under the MIT license.
# :startdoc:


module Wx

  class Log

    # Sets the current component for log info to the given value before executing the
    # given block and restores the previous component value after the block returns.
    # @param [String] comp component value for log info
    def self.for_component(comp, &block) end

  end

  class LogStderr

    # Creates a new LogStderr for the given file handle.
    # Possible values are 2 for `stderr` and 1 for `stdout`.
    # @param [Integer] fh file stream handle
    def initialize(fh = 2) end
  end

  class LogNull

    # Suspends logging before executing the given block and restarts logging when the block returns.
    def self.no_log(&block) end

  end

  class LogChain

    # Releases the redirection chain and restores the previous log instance as the active log target.
    # Traditionally in C++ applications would rely on the destructor to do this but that is not a really
    # predictable option in wxRuby since destruction only takes place after GC collection (which is not
    # exactly predictable) so wxRuby adds this method to better control restoration time if needed.
    # @return [void]
    def release; end

  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
wxruby3-0.9.7-x64-mingw-ucrt lib/wx/doc/log.rb
wxruby3-0.9.5-x64-mingw-ucrt lib/wx/doc/log.rb
wxruby3-0.9.4-x64-mingw-ucrt lib/wx/doc/log.rb
wxruby3-0.9.3-x64-mingw-ucrt lib/wx/doc/log.rb
wxruby3-0.9.2-x64-mingw-ucrt lib/wx/doc/log.rb
wxruby3-0.9.1-x64-mingw-ucrt lib/wx/doc/log.rb
wxruby3-0.9.0-x64-mingw-ucrt lib/wx/doc/log.rb