[asterisk-scf-commits] asterisk-scf/integration/log4scf.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Tue Sep 21 10:48:09 CDT 2010


branch "master" has been updated
       via  d2664e0bdb7985954b770e65de7862e32e5e5470 (commit)
      from  22ba76dc61fae7f6f30c8cf66471f96ac05ddd60 (commit)

Summary of changes:
 log-client.rb |   32 ------
 log4scf.rb    |  297 ---------------------------------------------------------
 2 files changed, 0 insertions(+), 329 deletions(-)
 delete mode 100644 log-client.rb
 delete mode 100644 log4scf.rb


- Log -----------------------------------------------------------------
commit d2664e0bdb7985954b770e65de7862e32e5e5470
Author: David M. Lee <dlee at digium.com>
Date:   Tue Sep 21 10:46:08 2010 -0500

    Removing Ruby cruft.

diff --git a/log-client.rb b/log-client.rb
deleted file mode 100644
index e652f3c..0000000
--- a/log-client.rb
+++ /dev/null
@@ -1,32 +0,0 @@
-# -*- coding: utf-8 -*-
-require 'log4scf.rb'
-
-status = 0
-ic = nil
-begin
-    ic = Ice::initialize(ARGV)
-    base = ic.stringToProxy("LoggingServer:tcp -h localhost ‑p 10000")
-    logger = AsteriskSCF::System::Logging::checkedCast(base)
-    if not logger
-        raise "Invalid proxy"
-    end
-
-    logger.log("component", -1, "Hello, log4scf")
-#rescue
-#    puts $!
-#    puts $!.backtrace.join("\n")
-#    status = 1
-end
-
-if ic
-    # Clean up
-    begin
-        ic.destroy()
-    rescue
-        puts $!
-        puts $!.backtrace.join("\n")
-        status = 1
-    end
-end
-
-exit(status)
diff --git a/log4scf.rb b/log4scf.rb
deleted file mode 100644
index 3770d8e..0000000
--- a/log4scf.rb
+++ /dev/null
@@ -1,297 +0,0 @@
-# **********************************************************************
-#
-# Copyright (c) 2003-2010 ZeroC, Inc. All rights reserved.
-#
-# This copy of Ice is licensed to you under the terms described in the
-# ICE_LICENSE file included in this distribution.
-#
-# **********************************************************************
-
-# Ice version 3.4.1
-
-# <auto-generated>
-#
-# Generated from file `log4scf.ice'
-#
-# Warning: do not edit this file.
-#
-# </auto-generated>
-
-require 'Ice'
-
-module AsteriskSCF
-
-    module System
-
-        module Logging
-
-            module V1
-
-                Version = "V1.0"
-
-                if not defined?(::AsteriskSCF::System::Logging::V1::Level)
-                    class Level
-                        include Comparable
-
-                        def initialize(val)
-                            fail("invalid value #{val} for Level") unless(val >= 0 and val < 9)
-                            @val = val
-                        end
-
-                        def Level.from_int(val)
-                            raise IndexError, "#{val} is out of range 0..8" if(val < 0 || val > 8)
-                            @@_values[val]
-                        end
-
-                        def to_s
-                            @@_names[@val]
-                        end
-
-                        def to_i
-                            @val
-                        end
-
-                        def <=>(other)
-                            other.is_a?(Level) or raise ArgumentError, "value must be a Level"
-                            @val <=> other.to_i
-                        end
-
-                        def hash
-                            @val.hash
-                        end
-
-                        def inspect
-                            @@_names[@val] + "(#{@val})"
-                        end
-
-                        def Level.each(&block)
-                            @@_values.each(&block)
-                        end
-
-                        @@_names = ['Debug', 'Info', 'Notice', 'Warning', 'Error', 'Critical', 'Alert', 'Emergency', 'Off']
-                        @@_values = [Level.new(0), Level.new(1), Level.new(2), Level.new(3), Level.new(4), Level.new(5), Level.new(6), Level.new(7), Level.new(8)]
-
-                        Debug = @@_values[0]
-                        Info = @@_values[1]
-                        Notice = @@_values[2]
-                        Warning = @@_values[3]
-                        Error = @@_values[4]
-                        Critical = @@_values[5]
-                        Alert = @@_values[6]
-                        Emergency = @@_values[7]
-                        Off = @@_values[8]
-
-                        private_class_method :new
-                    end
-
-                    T_Level = ::Ice::__defineEnum('::AsteriskSCF::System::Logging::V1::Level', Level, [Level::Debug, Level::Info, Level::Notice, Level::Warning, Level::Error, Level::Critical, Level::Alert, Level::Emergency, Level::Off])
-                end
-
-                if not defined?(::AsteriskSCF::System::Logging::V1::SourceSetting)
-                    class SourceSetting
-                        def initialize(source='', logLevel=::AsteriskSCF::System::Logging::V1::Level::Debug)
-                            @source = source
-                            @logLevel = logLevel
-                        end
-
-                        def hash
-                            _h = 0
-                            _h = 5 * _h + @source.hash
-                            _h = 5 * _h + @logLevel.hash
-                            _h % 0x7fffffff
-                        end
-
-                        def ==(other)
-                            return false if
-                                @source != other.source or
-                                @logLevel != other.logLevel
-                            true
-                        end
-
-                        def eql?(other)
-                            return other.class == self.class && other == self
-                        end
-
-                        def inspect
-                            ::Ice::__stringify(self, T_SourceSetting)
-                        end
-
-                        attr_accessor :source, :logLevel
-                    end
-
-                    T_SourceSetting = ::Ice::__defineStruct('::AsteriskSCF::System::Logging::V1::SourceSetting', SourceSetting, [
-                        ["source", ::Ice::T_string],
-                        ["logLevel", ::AsteriskSCF::System::Logging::V1::T_Level]
-                    ])
-                end
-
-                if not defined?(::AsteriskSCF::System::Logging::V1::T_SourceSettingSeq)
-                    T_SourceSettingSeq = ::Ice::__defineSequence('::AsteriskSCF::System::Logging::V1::SourceSettingSeq', ::AsteriskSCF::System::Logging::V1::T_SourceSetting)
-                end
-
-                if not defined?(::AsteriskSCF::System::Logging::V1::Configuration)
-                    class Configuration
-                        def initialize(sourceSettings=nil)
-                            @sourceSettings = sourceSettings
-                        end
-
-                        def hash
-                            _h = 0
-                            _h = 5 * _h + @sourceSettings.hash
-                            _h % 0x7fffffff
-                        end
-
-                        def ==(other)
-                            return false if
-                                @sourceSettings != other.sourceSettings
-                            true
-                        end
-
-                        def eql?(other)
-                            return other.class == self.class && other == self
-                        end
-
-                        def inspect
-                            ::Ice::__stringify(self, T_Configuration)
-                        end
-
-                        attr_accessor :sourceSettings
-                    end
-
-                    T_Configuration = ::Ice::__defineStruct('::AsteriskSCF::System::Logging::V1::Configuration', Configuration, [["sourceSettings", ::AsteriskSCF::System::Logging::V1::T_SourceSettingSeq]])
-                end
-
-                if not defined?(::AsteriskSCF::System::Logging::V1::T_LoggingClient)
-                    T_LoggingClient = ::Ice::__declareClass('::AsteriskSCF::System::Logging::V1::LoggingClient')
-                    T_LoggingClientPrx = ::Ice::__declareProxy('::AsteriskSCF::System::Logging::V1::LoggingClient')
-                end
-
-                if not defined?(::AsteriskSCF::System::Logging::V1::LoggingServer_mixin)
-                    module LoggingServer_mixin
-                        include ::Ice::Object_mixin
-
-                        def ice_ids(current=nil)
-                            ['::AsteriskSCF::System::Logging::V1::LoggingServer', '::Ice::Object']
-                        end
-
-                        def ice_id(current=nil)
-                            '::AsteriskSCF::System::Logging::V1::LoggingServer'
-                        end
-
-                        #
-                        # Operation signatures.
-                        #
-                        # def log(source, logLevel, message, current=nil)
-                        # def registerClient(client, current=nil)
-
-                        def inspect
-                            ::Ice::__stringify(self, T_LoggingServer)
-                        end
-                    end
-                    class LoggingServer
-                        include LoggingServer_mixin
-                        
-                        def LoggingServer.ice_staticId()
-                            '::AsteriskSCF::System::Logging::V1::LoggingServer'
-                        end
-                    end
-                    module LoggingServerPrx_mixin
-
-                        def log(source, logLevel, message, _ctx=nil)
-                            LoggingServer_mixin::OP_log.invoke(self, [source, logLevel, message], _ctx)
-                        end
-
-                        def registerClient(client, _ctx=nil)
-                            LoggingServer_mixin::OP_registerClient.invoke(self, [client], _ctx)
-                        end
-                    end
-                    class LoggingServerPrx < ::Ice::ObjectPrx
-                        include LoggingServerPrx_mixin
-
-                        def LoggingServerPrx.checkedCast(proxy, facetOrCtx=nil, _ctx=nil)
-                            ice_checkedCast(proxy, '::AsteriskSCF::System::Logging::V1::LoggingServer', facetOrCtx, _ctx)
-                        end
-
-                        def LoggingServerPrx.uncheckedCast(proxy, facet=nil)
-                            ice_uncheckedCast(proxy, facet)
-                        end
-                    end
-
-                    if not defined?(::AsteriskSCF::System::Logging::V1::T_LoggingServer)
-                        T_LoggingServer = ::Ice::__declareClass('::AsteriskSCF::System::Logging::V1::LoggingServer')
-                        T_LoggingServerPrx = ::Ice::__declareProxy('::AsteriskSCF::System::Logging::V1::LoggingServer')
-                    end
-
-                    T_LoggingServer.defineClass(LoggingServer, true, nil, [], [])
-                    LoggingServer_mixin::ICE_TYPE = T_LoggingServer
-
-                    T_LoggingServerPrx.defineProxy(LoggingServerPrx, T_LoggingServer)
-                    LoggingServerPrx::ICE_TYPE = T_LoggingServerPrx
-
-                    LoggingServer_mixin::OP_log = ::Ice::__defineOperation('log', ::Ice::OperationMode::Idempotent, ::Ice::OperationMode::Idempotent, false, [::Ice::T_string, ::AsteriskSCF::System::Logging::V1::T_Level, ::Ice::T_string], [], nil, [])
-                    LoggingServer_mixin::OP_registerClient = ::Ice::__defineOperation('registerClient', ::Ice::OperationMode::Normal, ::Ice::OperationMode::Normal, false, [::AsteriskSCF::System::Logging::V1::T_LoggingClientPrx], [], nil, [])
-                end
-
-                if not defined?(::AsteriskSCF::System::Logging::V1::LoggingClient_mixin)
-                    module LoggingClient_mixin
-                        include ::Ice::Object_mixin
-
-                        def ice_ids(current=nil)
-                            ['::AsteriskSCF::System::Logging::V1::LoggingClient', '::Ice::Object']
-                        end
-
-                        def ice_id(current=nil)
-                            '::AsteriskSCF::System::Logging::V1::LoggingClient'
-                        end
-
-                        #
-                        # Operation signatures.
-                        #
-                        # def configured(server, logConfiguration, current=nil)
-
-                        def inspect
-                            ::Ice::__stringify(self, T_LoggingClient)
-                        end
-                    end
-                    class LoggingClient
-                        include LoggingClient_mixin
-                        
-                        def LoggingClient.ice_staticId()
-                            '::AsteriskSCF::System::Logging::V1::LoggingClient'
-                        end
-                    end
-                    module LoggingClientPrx_mixin
-
-                        def configured(server, logConfiguration, _ctx=nil)
-                            LoggingClient_mixin::OP_configured.invoke(self, [server, logConfiguration], _ctx)
-                        end
-                    end
-                    class LoggingClientPrx < ::Ice::ObjectPrx
-                        include LoggingClientPrx_mixin
-
-                        def LoggingClientPrx.checkedCast(proxy, facetOrCtx=nil, _ctx=nil)
-                            ice_checkedCast(proxy, '::AsteriskSCF::System::Logging::V1::LoggingClient', facetOrCtx, _ctx)
-                        end
-
-                        def LoggingClientPrx.uncheckedCast(proxy, facet=nil)
-                            ice_uncheckedCast(proxy, facet)
-                        end
-                    end
-
-                    if not defined?(::AsteriskSCF::System::Logging::V1::T_LoggingClient)
-                        T_LoggingClient = ::Ice::__declareClass('::AsteriskSCF::System::Logging::V1::LoggingClient')
-                        T_LoggingClientPrx = ::Ice::__declareProxy('::AsteriskSCF::System::Logging::V1::LoggingClient')
-                    end
-
-                    T_LoggingClient.defineClass(LoggingClient, true, nil, [], [])
-                    LoggingClient_mixin::ICE_TYPE = T_LoggingClient
-
-                    T_LoggingClientPrx.defineProxy(LoggingClientPrx, T_LoggingClient)
-                    LoggingClientPrx::ICE_TYPE = T_LoggingClientPrx
-
-                    LoggingClient_mixin::OP_configured = ::Ice::__defineOperation('configured', ::Ice::OperationMode::Normal, ::Ice::OperationMode::Normal, false, [::AsteriskSCF::System::Logging::V1::T_LoggingServerPrx, ::AsteriskSCF::System::Logging::V1::T_Configuration], [], nil, [])
-                end
-            end
-        end
-    end
-end

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/log4scf.git



More information about the asterisk-scf-commits mailing list