Exemple #1
0
        public override Configuration CreateDefaultConfiguration()
        {
            var configuration = new Configuration();

            configuration.LoggingEnabled  = true;
            configuration.ApplicationName = PhoneUtil.GetAppTitle();
            var dbListener = new ListenerConfiguration();

            dbListener.Name = "App";
            dbListener.Type = typeof(DbListener).AssemblyQualifiedName;
            configuration.Listeners.Add(dbListener);
            return(configuration);
        }
Exemple #2
0
        public override Task <DumpMetaData> GetDumpMetaDataAsync()
        {
            var task = Task.Factory.StartNew(() =>
            {
                if (_dumpMetaData == null)
                {
                    _dumpMetaData = new DumpMetaData();
                    _dumpMetaData.ApplicationName    = PhoneUtil.GetAppTitle();
                    _dumpMetaData.ApplicationVersion = PhoneUtil.GetAppVersion();
                    _dumpMetaData.DeviceId           = GetDeviceId();
                    _dumpMetaData.UserId             = GetUserId();
                }
                return(_dumpMetaData);
            });

            return(task);
        }
Exemple #3
0
        public override async Task <string> LoadConfigurationFromFileAsync()
        {
            var xml = await PhoneUtil.LoadFromAppFolderAsync("PortiLog.Config.xml");

            return(xml);
        }