Skip to content

Commit 0fee332

Browse files
Nemes CsabaNemes Csaba
authored andcommitted
updating to new package format
1 parent b0413ce commit 0fee332

File tree

127 files changed

+4012
-771
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+4012
-771
lines changed

TestApplication.Log4Net.Core/FodyWeavers.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<Weavers>
2+
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
33
<!--<Tracer adapterAssembly="Tracer.OutputWindow"
44
logManager="Tracer.OutputWindow.Adapters.LogManagerAdapter"
55
logger="Tracer.OutputWindow.Adapters.LoggerAdapter"
Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
3+
<!-- This file was generated by Fody. Manual changes to this file will be lost when your project is rebuilt. -->
4+
<xs:element name="Weavers">
5+
<xs:complexType>
6+
<xs:all>
7+
<xs:element name="Tracer" minOccurs="0" maxOccurs="1">
8+
<xs:complexType>
9+
<xs:choice minOccurs="0" maxOccurs="unbounded">
10+
<xs:element name="TraceOn">
11+
<xs:complexType>
12+
<xs:annotation>
13+
<xs:documentation>Turns the tracing on for the methods defined in the pattern filter. Only valid if legacy filtering is selected.</xs:documentation>
14+
</xs:annotation>
15+
<xs:attribute name="namespace" type="xs:string">
16+
<xs:annotation>
17+
<xs:documentation>The namespace used for filtering.</xs:documentation>
18+
</xs:annotation>
19+
</xs:attribute>
20+
<xs:attribute name="class">
21+
<xs:simpleType>
22+
<xs:annotation>
23+
<xs:documentation>The lowest visibility of the class included in filtering. Classes with lower visibility are not included in tracing.</xs:documentation>
24+
</xs:annotation>
25+
<xs:restriction base="xs:string">
26+
<xs:enumeration value="public" />
27+
<xs:enumeration value="internal" />
28+
<xs:enumeration value="protected" />
29+
<xs:enumeration value="private" />
30+
<xs:enumeration value="none" />
31+
</xs:restriction>
32+
</xs:simpleType>
33+
</xs:attribute>
34+
<xs:attribute name="method">
35+
<xs:simpleType>
36+
<xs:annotation>
37+
<xs:documentation>The lowest visibility of the method included in filtering. Methods with lower visibility are not included in tracing.</xs:documentation>
38+
</xs:annotation>
39+
<xs:restriction base="xs:string">
40+
<xs:enumeration value="public" />
41+
<xs:enumeration value="internal" />
42+
<xs:enumeration value="protected" />
43+
<xs:enumeration value="private" />
44+
<xs:enumeration value="none" />
45+
</xs:restriction>
46+
</xs:simpleType>
47+
</xs:attribute>
48+
</xs:complexType>
49+
</xs:element>
50+
<xs:element name="NoTrace">
51+
<xs:complexType>
52+
<xs:annotation>
53+
<xs:documentation>Turns the tracing off for the methods defined in the pattern filter. Only valid if legacy filtering is selected.</xs:documentation>
54+
</xs:annotation>
55+
<xs:attribute name="pattern" type="xs:string">
56+
<xs:annotation>
57+
<xs:documentation>The pattern used for filtering.</xs:documentation>
58+
</xs:annotation>
59+
</xs:attribute>
60+
</xs:complexType>
61+
</xs:element>
62+
<xs:element name="On">
63+
<xs:complexType>
64+
<xs:annotation>
65+
<xs:documentation>Turns the tracing on for the methods defined in the pattern filter. Only valid if pattern filtering is selected.</xs:documentation>
66+
</xs:annotation>
67+
<xs:attribute name="pattern" type="xs:string" use="required">
68+
<xs:annotation>
69+
<xs:documentation>The pattern used for filtering.</xs:documentation>
70+
</xs:annotation>
71+
</xs:attribute>
72+
</xs:complexType>
73+
</xs:element>
74+
<xs:element name="Off">
75+
<xs:complexType>
76+
<xs:annotation>
77+
<xs:documentation>Turns the tracing off for the methods defined in the pattern filter. Only valid if pattern filtering is selected.</xs:documentation>
78+
</xs:annotation>
79+
<xs:attribute name="pattern" type="xs:string" use="required">
80+
<xs:annotation>
81+
<xs:documentation>The pattern used for filtering.</xs:documentation>
82+
</xs:annotation>
83+
</xs:attribute>
84+
</xs:complexType>
85+
</xs:element>
86+
</xs:choice>
87+
<xs:attribute name="adapterAssembly" type="xs:string">
88+
<xs:annotation>
89+
<xs:documentation>The assembly name of the tracer adapter specific for a given logging framework (e.g. Tracer.Log4Net).</xs:documentation>
90+
</xs:annotation>
91+
</xs:attribute>
92+
<xs:attribute name="logManager" type="xs:string">
93+
<xs:annotation>
94+
<xs:documentation>The Log manager adapter class specific for the given logging framework specific Tracer assembly (e.g. Tracer.Log4Net.Adapters.LogManagerAdapter).</xs:documentation>
95+
</xs:annotation>
96+
</xs:attribute>
97+
<xs:attribute name="logger" type="xs:string">
98+
<xs:annotation>
99+
<xs:documentation>The Logger adapter class specific for the given logging framework specific Tracer assembly (e.g. Tracer.Log4Net.Adapters.LoggerAdapter).</xs:documentation>
100+
</xs:annotation>
101+
</xs:attribute>
102+
<xs:attribute name="staticLogger" type="xs:string">
103+
<xs:annotation>
104+
<xs:documentation>The static Logger class specific for the given logging framework specific Tracer assembly (e.g. Tracer.Log4Net.Log).</xs:documentation>
105+
</xs:annotation>
106+
</xs:attribute>
107+
<xs:attribute name="filter">
108+
<xs:simpleType>
109+
<xs:annotation>
110+
<xs:documentation>The filtering method used when rewriting methods.</xs:documentation>
111+
</xs:annotation>
112+
<xs:restriction base="xs:string">
113+
<xs:enumeration value="pattern" />
114+
<xs:enumeration value="legacy" />
115+
</xs:restriction>
116+
</xs:simpleType>
117+
</xs:attribute>
118+
<xs:attribute name="traceConstructors" type="xs:boolean">
119+
<xs:annotation>
120+
<xs:documentation>Turn on tracing for constructors.</xs:documentation>
121+
</xs:annotation>
122+
</xs:attribute>
123+
<xs:attribute name="traceProperties" type="xs:boolean">
124+
<xs:annotation>
125+
<xs:documentation>Turn on tracing for properties.</xs:documentation>
126+
</xs:annotation>
127+
</xs:attribute>
128+
</xs:complexType>
129+
</xs:element>
130+
</xs:all>
131+
<xs:attribute name="VerifyAssembly" type="xs:boolean">
132+
<xs:annotation>
133+
<xs:documentation>'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed.</xs:documentation>
134+
</xs:annotation>
135+
</xs:attribute>
136+
<xs:attribute name="VerifyIgnoreCodes" type="xs:string">
137+
<xs:annotation>
138+
<xs:documentation>A comma-separated list of error codes that can be safely ignored in assembly verification.</xs:documentation>
139+
</xs:annotation>
140+
</xs:attribute>
141+
<xs:attribute name="GenerateXsd" type="xs:boolean">
142+
<xs:annotation>
143+
<xs:documentation>'false' to turn off automatic generation of the XML Schema file.</xs:documentation>
144+
</xs:annotation>
145+
</xs:attribute>
146+
</xs:complexType>
147+
</xs:element>
148+
</xs:schema>

TestApplication.Log4Net.Core/TestApplication.Log4Net.Core.csproj

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
55
<TargetFramework>netcoreapp2.1</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Fody" Version="3.0.3" />
9+
<WeaverFiles Include="$(ProjectDir)\tools\netstandardweaver\Tracer.Fody.dll" />
10+
</ItemGroup>
11+
12+
<ItemGroup>
13+
<PackageReference Include="Fody" Version="3.3.5">
14+
<PrivateAssets>all</PrivateAssets>
15+
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
16+
</PackageReference>
1017
<PackageReference Include="log4net" Version="2.0.8" />
1118
</ItemGroup>
1219

Binary file not shown.
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
3+
<xs:choice minOccurs="0" maxOccurs="unbounded">
4+
<xs:element name="TraceOn" >
5+
<xs:complexType>
6+
<xs:annotation>
7+
<xs:documentation>Turns the tracing on for the methods defined in the pattern filter. Only valid if legacy filtering is selected.</xs:documentation>
8+
</xs:annotation>
9+
<xs:attribute name="namespace" type="xs:string" >
10+
<xs:annotation>
11+
<xs:documentation>The namespace used for filtering.</xs:documentation>
12+
</xs:annotation>
13+
</xs:attribute>
14+
<xs:attribute name="class" >
15+
<xs:simpleType>
16+
<xs:annotation>
17+
<xs:documentation>The lowest visibility of the class included in filtering. Classes with lower visibility are not included in tracing.</xs:documentation>
18+
</xs:annotation>
19+
<xs:restriction base="xs:string">
20+
<xs:enumeration value="public" />
21+
<xs:enumeration value="internal" />
22+
<xs:enumeration value="protected" />
23+
<xs:enumeration value="private" />
24+
<xs:enumeration value="none" />
25+
</xs:restriction>
26+
</xs:simpleType>
27+
</xs:attribute>
28+
<xs:attribute name="method">
29+
<xs:simpleType>
30+
<xs:annotation>
31+
<xs:documentation>The lowest visibility of the method included in filtering. Methods with lower visibility are not included in tracing.</xs:documentation>
32+
</xs:annotation>
33+
<xs:restriction base="xs:string">
34+
<xs:enumeration value="public" />
35+
<xs:enumeration value="internal" />
36+
<xs:enumeration value="protected" />
37+
<xs:enumeration value="private" />
38+
<xs:enumeration value="none" />
39+
</xs:restriction>
40+
</xs:simpleType>
41+
</xs:attribute>
42+
</xs:complexType>
43+
</xs:element>
44+
<xs:element name="NoTrace" >
45+
<xs:complexType>
46+
<xs:annotation>
47+
<xs:documentation>Turns the tracing off for the methods defined in the pattern filter. Only valid if legacy filtering is selected.</xs:documentation>
48+
</xs:annotation>
49+
<xs:attribute name="pattern" type="xs:string" >
50+
<xs:annotation>
51+
<xs:documentation>The pattern used for filtering.</xs:documentation>
52+
</xs:annotation>
53+
</xs:attribute>
54+
</xs:complexType>
55+
</xs:element>
56+
<xs:element name="On" >
57+
<xs:complexType>
58+
<xs:annotation>
59+
<xs:documentation>Turns the tracing on for the methods defined in the pattern filter. Only valid if pattern filtering is selected.</xs:documentation>
60+
</xs:annotation>
61+
<xs:attribute name="pattern" type="xs:string" use="required">
62+
<xs:annotation>
63+
<xs:documentation>The pattern used for filtering.</xs:documentation>
64+
</xs:annotation>
65+
</xs:attribute>
66+
</xs:complexType>
67+
</xs:element>
68+
<xs:element name="Off" >
69+
<xs:complexType>
70+
<xs:annotation>
71+
<xs:documentation>Turns the tracing off for the methods defined in the pattern filter. Only valid if pattern filtering is selected.</xs:documentation>
72+
</xs:annotation>
73+
<xs:attribute name="pattern" type="xs:string" use="required">
74+
<xs:annotation>
75+
<xs:documentation>The pattern used for filtering.</xs:documentation>
76+
</xs:annotation>
77+
</xs:attribute>
78+
</xs:complexType>
79+
</xs:element>
80+
</xs:choice>
81+
<xs:attribute name="adapterAssembly" type="xs:string">
82+
<xs:annotation>
83+
<xs:documentation>The assembly name of the tracer adapter specific for a given logging framework (e.g. Tracer.Log4Net).</xs:documentation>
84+
</xs:annotation>
85+
</xs:attribute>
86+
<xs:attribute name="logManager" type="xs:string" >
87+
<xs:annotation>
88+
<xs:documentation>The Log manager adapter class specific for the given logging framework specific Tracer assembly (e.g. Tracer.Log4Net.Adapters.LogManagerAdapter).</xs:documentation>
89+
</xs:annotation>
90+
</xs:attribute>
91+
<xs:attribute name="logger" type="xs:string" >
92+
<xs:annotation>
93+
<xs:documentation>The Logger adapter class specific for the given logging framework specific Tracer assembly (e.g. Tracer.Log4Net.Adapters.LoggerAdapter).</xs:documentation>
94+
</xs:annotation>
95+
</xs:attribute>
96+
<xs:attribute name="staticLogger" type="xs:string" >
97+
<xs:annotation>
98+
<xs:documentation>The static Logger class specific for the given logging framework specific Tracer assembly (e.g. Tracer.Log4Net.Log).</xs:documentation>
99+
</xs:annotation>
100+
</xs:attribute>
101+
<xs:attribute name="filter">
102+
<xs:simpleType>
103+
<xs:annotation>
104+
<xs:documentation>The filtering method used when rewriting methods.</xs:documentation>
105+
</xs:annotation>
106+
<xs:restriction base="xs:string">
107+
<xs:enumeration value="pattern" />
108+
<xs:enumeration value="legacy" />
109+
</xs:restriction>
110+
</xs:simpleType>
111+
</xs:attribute>
112+
<xs:attribute name="traceConstructors" type="xs:boolean" >
113+
<xs:annotation>
114+
<xs:documentation>Turn on tracing for constructors.</xs:documentation>
115+
</xs:annotation>
116+
</xs:attribute>
117+
<xs:attribute name="traceProperties" type="xs:boolean" >
118+
<xs:annotation>
119+
<xs:documentation>Turn on tracing for properties.</xs:documentation>
120+
</xs:annotation>
121+
</xs:attribute>
122+
</xs:complexType>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<Tracer adapterAssembly="Tracer.Log4Net" logManager="Tracer.Log4Net.Adapters.LogManagerAdapter" logger="Tracer.Log4Net.Adapters.LoggerAdapter" staticLogger="Tracer.Log4Net.Log" />
Binary file not shown.

0 commit comments

Comments
 (0)