Skip to content

Commit f507f8a

Browse files
committed
Upgraded to VS 2010
1 parent 3f25bec commit f507f8a

13 files changed

Lines changed: 894 additions & 799 deletions

.gitignore

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,36 @@
1-
.suo
2-
bin/
3-
obj/
4-
_ReSharper.ServiceStack.Logging/
5-
.idea/
6-
release/
1+
bin/
2+
obj/
3+
.idea/
4+
latest/
5+
/env-vars.bat
6+
*.suo
7+
#ignore thumbnails created by windows
8+
Thumbs.db
9+
#Ignore files build by Visual Studio
10+
*.obj
11+
*.exe
12+
*.pdb
13+
*.user
14+
*.aps
15+
*.pch
16+
*.vspscc
17+
*_i.c
18+
*_p.c
19+
*.ncb
20+
*.suo
21+
*.tlb
22+
*.tlh
23+
*.bak
24+
*.cache
25+
*.ilk
26+
*.log
27+
[Bb]in
28+
[Dd]ebug*/
29+
*.lib
30+
*.sbr
31+
*.resharper.user
32+
obj/
33+
[Rr]elease*/
34+
_ReSharper*/
35+
[Tt]est[Rr]esult*
36+
App_Data/

LICENSE

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Copyright (c) 2007-2011, Demis Bellot, ServiceStack.
2+
http://www.servicestack.net
3+
All rights reserved.
4+
5+
Redistribution and use in source and binary forms, with or without
6+
modification, are permitted provided that the following conditions are met:
7+
* Redistributions of source code must retain the above copyright
8+
notice, this list of conditions and the following disclaimer.
9+
* Redistributions in binary form must reproduce the above copyright
10+
notice, this list of conditions and the following disclaimer in the
11+
documentation and/or other materials provided with the distribution.
12+
* Neither the name of the ServiceStack nor the
13+
names of its contributors may be used to endorse or promote products
14+
derived from this software without specific prior written permission.
15+
16+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19+
DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
20+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 45 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,45 @@
1-
## ServiceStack.Logging an implementation-free logging interface for your app logic to bind to
2-
3-
Even in the spirit of **Bind to interfaces, not implemenations**, many .NET projects still have
4-
a hard dependency to [log4net](http://logging.apache.org/log4net/index.html).
5-
6-
Although log4net is the standard for logging in .NET, potential problems can arise from your libraries having a hard dependency on it:
7-
8-
* Your library needs to be shipped with a third-party dependency
9-
* Potential conflicts can occur when different libraries have dependency on different versions of log4net (e.g. the 1.2.9 / 1.2.10 dependency problem).
10-
* You may want to use a different logging provider (i.e. network distributed logging)
11-
* You want your logging for Unit and Integration tests to redirect to the Console or Debug logger without any configuraiton.
12-
13-
ServiceStack.Logging solves these problems by providing an implementation-free ILog interface that your application logic can bind to
14-
where your Application Host project can bind to the concrete logging implementation at deploy or runtime.
15-
16-
ServiceStack.Logging also includes adapters for the following logging providers:
17-
18-
* Log4Net 1.2.10+
19-
* Log4Net 1.2.9
20-
* EventLog
21-
* Console Log
22-
* Debug Log
23-
* Null / Empty Log
24-
25-
# Usage Examples
26-
27-
Once on your App Startup, either In your AppHost.cs or Global.asax file inject the concrete logging implementation that your app should use, e.g.
28-
29-
## Log4Net
30-
LogManager.LogFactory = new Log4NetFactory(true); //Also runs log4net.Config.XmlConfigurator.Configure()
31-
32-
## Event Log
33-
LogManager.LogFactory = new EventLogFactory("ServiceStack.Logging.Tests", "Application");
34-
35-
Then your application logic can bind to and use a lightweight implementation-free ILog which at runtime will be an instance of the concrete implementation configured in your host:
36-
37-
ILog log = LogManager.GetLogger(GetType());
38-
39-
log.Debug("Debug Event Log Entry.");
40-
log.Warn("Warning Event Log Entry.");
41-
42-
43-
44-
1+
## ServiceStack.Logging an implementation-free logging interface for your app logic to bind to
2+
For twitter updates follow <a href="http://twitter.com/demisbellot">@demisbellot</a> or <a href="http://twitter.com/servicestack">@ServiceStack</a>
3+
4+
Even in the spirit of **Bind to interfaces, not implemenations**, many .NET projects still have
5+
a hard dependency to [log4net](http://logging.apache.org/log4net/index.html).
6+
7+
Although log4net is the standard for logging in .NET, potential problems can arise from your libraries having a hard dependency on it:
8+
9+
* Your library needs to be shipped with a third-party dependency
10+
* Potential conflicts can occur when different libraries have dependency on different versions of log4net (e.g. the 1.2.9 / 1.2.10 dependency problem).
11+
* You may want to use a different logging provider (i.e. network distributed logging)
12+
* You want your logging for Unit and Integration tests to redirect to the Console or Debug logger without any configuraiton.
13+
14+
ServiceStack.Logging solves these problems by providing an implementation-free ILog interface that your application logic can bind to
15+
where your Application Host project can bind to the concrete logging implementation at deploy or runtime.
16+
17+
ServiceStack.Logging also includes adapters for the following logging providers:
18+
19+
* Log4Net 1.2.10+
20+
* Log4Net 1.2.9
21+
* EventLog
22+
* Console Log
23+
* Debug Log
24+
* Null / Empty Log
25+
26+
# Usage Examples
27+
28+
Once on your App Startup, either In your AppHost.cs or Global.asax file inject the concrete logging implementation that your app should use, e.g.
29+
30+
## Log4Net
31+
LogManager.LogFactory = new Log4NetFactory(true); //Also runs log4net.Config.XmlConfigurator.Configure()
32+
33+
## Event Log
34+
LogManager.LogFactory = new EventLogFactory("ServiceStack.Logging.Tests", "Application");
35+
36+
Then your application logic can bind to and use a lightweight implementation-free ILog which at runtime will be an instance of the concrete implementation configured in your host:
37+
38+
ILog log = LogManager.GetLogger(GetType());
39+
40+
log.Debug("Debug Event Log Entry.");
41+
log.Warn("Warning Event Log Entry.");
42+
43+
44+
45+

lib/ServiceStack.Interfaces.dll

29 KB
Binary file not shown.
Lines changed: 111 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -1,107 +1,112 @@
1-
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
2-
<PropertyGroup>
3-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
4-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
5-
<ProductVersion>9.0.30729</ProductVersion>
6-
<SchemaVersion>2.0</SchemaVersion>
7-
<ProjectGuid>{D920BA88-E394-4C75-94E3-78D7298A8457}</ProjectGuid>
8-
<OutputType>Library</OutputType>
9-
<AppDesignerFolder>Properties</AppDesignerFolder>
10-
<RootNamespace>ServiceStack.Logging.EventLog</RootNamespace>
11-
<AssemblyName>ServiceStack.Logging.EventLog</AssemblyName>
12-
<SccProjectName>
13-
</SccProjectName>
14-
<SccLocalPath>
15-
</SccLocalPath>
16-
<SccAuxPath>
17-
</SccAuxPath>
18-
<SccProvider>
19-
</SccProvider>
20-
<FileUpgradeFlags>
21-
</FileUpgradeFlags>
22-
<OldToolsVersion>2.0</OldToolsVersion>
23-
<UpgradeBackupLocation>
24-
</UpgradeBackupLocation>
25-
<PublishUrl>publish\</PublishUrl>
26-
<Install>true</Install>
27-
<InstallFrom>Disk</InstallFrom>
28-
<UpdateEnabled>false</UpdateEnabled>
29-
<UpdateMode>Foreground</UpdateMode>
30-
<UpdateInterval>7</UpdateInterval>
31-
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
32-
<UpdatePeriodically>false</UpdatePeriodically>
33-
<UpdateRequired>false</UpdateRequired>
34-
<MapFileExtensions>true</MapFileExtensions>
35-
<ApplicationRevision>0</ApplicationRevision>
36-
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
37-
<IsWebBootstrapper>false</IsWebBootstrapper>
38-
<UseApplicationTrust>false</UseApplicationTrust>
39-
<BootstrapperEnabled>true</BootstrapperEnabled>
40-
</PropertyGroup>
41-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
42-
<DebugSymbols>true</DebugSymbols>
43-
<DebugType>full</DebugType>
44-
<Optimize>false</Optimize>
45-
<OutputPath>bin\Debug\</OutputPath>
46-
<DefineConstants>DEBUG;TRACE</DefineConstants>
47-
<ErrorReport>prompt</ErrorReport>
48-
<WarningLevel>4</WarningLevel>
49-
</PropertyGroup>
50-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
51-
<DebugType>pdbonly</DebugType>
52-
<Optimize>true</Optimize>
53-
<OutputPath>bin\Release\</OutputPath>
54-
<DefineConstants>TRACE</DefineConstants>
55-
<ErrorReport>prompt</ErrorReport>
56-
<WarningLevel>4</WarningLevel>
57-
</PropertyGroup>
58-
<ItemGroup>
59-
<Reference Include="ServiceStack.Interfaces, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
60-
<SpecificVersion>False</SpecificVersion>
61-
<HintPath>..\..\lib\ServiceStack.Interfaces.dll</HintPath>
62-
</Reference>
63-
<Reference Include="System" />
64-
<Reference Include="System.Data" />
65-
<Reference Include="System.Xml" />
66-
</ItemGroup>
67-
<ItemGroup>
68-
<Compile Include="EventLogFactory.cs" />
69-
<Compile Include="EventLogger.cs" />
70-
<Compile Include="Properties\AssemblyInfo.cs" />
71-
</ItemGroup>
72-
<ItemGroup>
73-
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
74-
<Visible>False</Visible>
75-
<ProductName>.NET Framework Client Profile</ProductName>
76-
<Install>false</Install>
77-
</BootstrapperPackage>
78-
<BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
79-
<Visible>False</Visible>
80-
<ProductName>.NET Framework 2.0 %28x86%29</ProductName>
81-
<Install>true</Install>
82-
</BootstrapperPackage>
83-
<BootstrapperPackage Include="Microsoft.Net.Framework.3.0">
84-
<Visible>False</Visible>
85-
<ProductName>.NET Framework 3.0 %28x86%29</ProductName>
86-
<Install>false</Install>
87-
</BootstrapperPackage>
88-
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5">
89-
<Visible>False</Visible>
90-
<ProductName>.NET Framework 3.5</ProductName>
91-
<Install>false</Install>
92-
</BootstrapperPackage>
93-
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
94-
<Visible>False</Visible>
95-
<ProductName>.NET Framework 3.5 SP1</ProductName>
96-
<Install>false</Install>
97-
</BootstrapperPackage>
98-
</ItemGroup>
99-
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
100-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
101-
Other similar extension points exist, see Microsoft.Common.targets.
102-
<Target Name="BeforeBuild">
103-
</Target>
104-
<Target Name="AfterBuild">
105-
</Target>
106-
-->
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6+
<ProductVersion>9.0.30729</ProductVersion>
7+
<SchemaVersion>2.0</SchemaVersion>
8+
<ProjectGuid>{D920BA88-E394-4C75-94E3-78D7298A8457}</ProjectGuid>
9+
<OutputType>Library</OutputType>
10+
<AppDesignerFolder>Properties</AppDesignerFolder>
11+
<RootNamespace>ServiceStack.Logging.EventLog</RootNamespace>
12+
<AssemblyName>ServiceStack.Logging.EventLog</AssemblyName>
13+
<SccProjectName>
14+
</SccProjectName>
15+
<SccLocalPath>
16+
</SccLocalPath>
17+
<SccAuxPath>
18+
</SccAuxPath>
19+
<SccProvider>
20+
</SccProvider>
21+
<FileUpgradeFlags>
22+
</FileUpgradeFlags>
23+
<OldToolsVersion>3.5</OldToolsVersion>
24+
<UpgradeBackupLocation>
25+
</UpgradeBackupLocation>
26+
<IsWebBootstrapper>false</IsWebBootstrapper>
27+
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
28+
<PublishUrl>publish\</PublishUrl>
29+
<Install>true</Install>
30+
<InstallFrom>Disk</InstallFrom>
31+
<UpdateEnabled>false</UpdateEnabled>
32+
<UpdateMode>Foreground</UpdateMode>
33+
<UpdateInterval>7</UpdateInterval>
34+
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
35+
<UpdatePeriodically>false</UpdatePeriodically>
36+
<UpdateRequired>false</UpdateRequired>
37+
<MapFileExtensions>true</MapFileExtensions>
38+
<ApplicationRevision>0</ApplicationRevision>
39+
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
40+
<UseApplicationTrust>false</UseApplicationTrust>
41+
<BootstrapperEnabled>true</BootstrapperEnabled>
42+
<TargetFrameworkProfile />
43+
</PropertyGroup>
44+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
45+
<DebugSymbols>true</DebugSymbols>
46+
<DebugType>full</DebugType>
47+
<Optimize>false</Optimize>
48+
<OutputPath>bin\Debug\</OutputPath>
49+
<DefineConstants>DEBUG;TRACE</DefineConstants>
50+
<ErrorReport>prompt</ErrorReport>
51+
<WarningLevel>4</WarningLevel>
52+
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
53+
</PropertyGroup>
54+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
55+
<DebugType>pdbonly</DebugType>
56+
<Optimize>true</Optimize>
57+
<OutputPath>bin\Release\</OutputPath>
58+
<DefineConstants>TRACE</DefineConstants>
59+
<ErrorReport>prompt</ErrorReport>
60+
<WarningLevel>4</WarningLevel>
61+
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
62+
</PropertyGroup>
63+
<ItemGroup>
64+
<Reference Include="ServiceStack.Interfaces, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
65+
<SpecificVersion>False</SpecificVersion>
66+
<HintPath>..\..\lib\ServiceStack.Interfaces.dll</HintPath>
67+
</Reference>
68+
<Reference Include="System" />
69+
<Reference Include="System.Data" />
70+
<Reference Include="System.Xml" />
71+
</ItemGroup>
72+
<ItemGroup>
73+
<Compile Include="EventLogFactory.cs" />
74+
<Compile Include="EventLogger.cs" />
75+
<Compile Include="Properties\AssemblyInfo.cs" />
76+
</ItemGroup>
77+
<ItemGroup>
78+
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
79+
<Visible>False</Visible>
80+
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
81+
<Install>false</Install>
82+
</BootstrapperPackage>
83+
<BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
84+
<Visible>False</Visible>
85+
<ProductName>.NET Framework 2.0 %28x86%29</ProductName>
86+
<Install>true</Install>
87+
</BootstrapperPackage>
88+
<BootstrapperPackage Include="Microsoft.Net.Framework.3.0">
89+
<Visible>False</Visible>
90+
<ProductName>.NET Framework 3.0 %28x86%29</ProductName>
91+
<Install>false</Install>
92+
</BootstrapperPackage>
93+
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5">
94+
<Visible>False</Visible>
95+
<ProductName>.NET Framework 3.5</ProductName>
96+
<Install>false</Install>
97+
</BootstrapperPackage>
98+
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
99+
<Visible>False</Visible>
100+
<ProductName>.NET Framework 3.5 SP1</ProductName>
101+
<Install>false</Install>
102+
</BootstrapperPackage>
103+
</ItemGroup>
104+
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
105+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
106+
Other similar extension points exist, see Microsoft.Common.targets.
107+
<Target Name="BeforeBuild">
108+
</Target>
109+
<Target Name="AfterBuild">
110+
</Target>
111+
-->
107112
</Project>

0 commit comments

Comments
 (0)