summaryrefslogtreecommitdiff
path: root/csharp/src/Ice/TraceLevels.cs
blob: c9f302965f2c5f0234b78406bac0aa3712b4b62f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// **********************************************************************
//
// Copyright (c) 2003-2017 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.
//
// **********************************************************************

namespace IceInternal
{

    public sealed class TraceLevels
    {
        internal TraceLevels(Ice.Properties properties)
        {
            networkCat = "Network";
            protocolCat = "Protocol";
            retryCat = "Retry";
            locationCat = "Locator";
            slicingCat = "Slicing";
            threadPoolCat = "ThreadPool";
            
            string keyBase = "Ice.Trace.";
            
            network = properties.getPropertyAsInt(keyBase + networkCat);
            protocol = properties.getPropertyAsInt(keyBase + protocolCat);
            retry = properties.getPropertyAsInt(keyBase + retryCat);
            location = properties.getPropertyAsInt(keyBase + locationCat);
            slicing = properties.getPropertyAsInt(keyBase + slicingCat);
            threadPool = properties.getPropertyAsInt(keyBase + threadPoolCat);
        }
        
        public readonly int network;
        public readonly string networkCat;
        public readonly int protocol;
        public readonly string protocolCat;
        public readonly int retry;
        public readonly string retryCat;
        public readonly int location;
        public readonly string locationCat;
        public readonly int slicing;
        public readonly string slicingCat;
        public readonly int threadPool;
        public readonly string threadPoolCat;
    }

}