getLogWriter() public static method

public static getLogWriter ( ) : LogWriter
return RaumfeldNET.Log.LogWriter
コード例 #1
0
ファイル: Controller.cs プロジェクト: woweidmann/raumwiese
        public Controller(NetworkConnectInfo _networkConnectionInfo)
        {
            logWriter = Global.getLogWriter();
            logWriter.setLogLevel(LogType.Error);

            this.writeLog(LogType.Info, "Starte Applikation Raumwiese");

            // use OhNet-Upnp Stack. This is the only one we may use for now which contains most methods we need.
            // the intelUPNP device Stack is not developed in final realease for the wrapper. You may debelop other Stacks
            upnpStack = new UNPN_OhNet();
            upnpStack.setNetwork(_networkConnectionInfo);
            upnpStack.onStartingNetwork += upnpStack_onStartingNetworkSink;
            upnpStack.init();

            // create zone, mediaServer and renderer managers
            zoneManager          = new ZoneManager(upnpStack);
            mediaServerManager   = new MediaServerManager(upnpStack);
            rendererManager      = new RendererManager(upnpStack);
            configManager        = new ConfigManager(upnpStack);
            zoneTitleListManager = new ZoneTitleListManager(upnpStack);
            contentBrowser       = new ContentDirectoryBrowserMulti("", upnpStack);
            playlistBrowser      = new PlaylistBrowser(upnpStack);

            // create data cache for images
            imageDataCache = new ImageDataCache();

            // set Managers global.
            Global.setMediaServerManager(mediaServerManager);
            Global.setRendererManager(rendererManager);
            Global.setZoneManager(zoneManager);
            Global.setConfigManager(configManager);
            Global.setImageDataCache(imageDataCache);
            Global.setZoneTitleListManager(zoneTitleListManager);
            Global.setContentBrowser(contentBrowser);
            Global.setPlaylistBrowser(playlistBrowser);
        }
コード例 #2
0
ファイル: Controller.cs プロジェクト: woweidmann/raumwiese
 protected void upnpStack_onStartingNetworkSink(string _networkInfo)
 {
     Global.getLogWriter().writeLog(LogType.Always, String.Format("Benutze NW-Controller: {0}", _networkInfo));
 }