diff options
Diffstat (limited to 'Common/OpenSim.Framework.Console')
-rw-r--r-- | Common/OpenSim.Framework.Console/LogBase.cs (renamed from Common/OpenSim.Framework.Console/ConsoleBase.cs) | 20 | ||||
-rw-r--r-- | Common/OpenSim.Framework.Console/MainLog.cs (renamed from Common/OpenSim.Framework.Console/MainConsole.cs) | 6 | ||||
-rw-r--r-- | Common/OpenSim.Framework.Console/OpenSim.Framework.Console.csproj | 31 |
3 files changed, 26 insertions, 31 deletions
diff --git a/Common/OpenSim.Framework.Console/ConsoleBase.cs b/Common/OpenSim.Framework.Console/LogBase.cs index 80a28e9..b625b75 100644 --- a/Common/OpenSim.Framework.Console/ConsoleBase.cs +++ b/Common/OpenSim.Framework.Console/LogBase.cs | |||
@@ -41,14 +41,14 @@ namespace OpenSim.Framework.Console | |||
41 | EXTRAVERBOSE | 41 | EXTRAVERBOSE |
42 | } | 42 | } |
43 | 43 | ||
44 | public class ConsoleBase | 44 | public class LogBase |
45 | { | 45 | { |
46 | StreamWriter Log; | 46 | StreamWriter Log; |
47 | public conscmd_callback cmdparser; | 47 | public conscmd_callback cmdparser; |
48 | public string componentname; | 48 | public string componentname; |
49 | private bool m_silent; | 49 | private bool m_silent; |
50 | 50 | ||
51 | public ConsoleBase(string LogFile, string componentname, conscmd_callback cmdparser, bool silent ) | 51 | public LogBase(string LogFile, string componentname, conscmd_callback cmdparser, bool silent ) |
52 | { | 52 | { |
53 | this.componentname = componentname; | 53 | this.componentname = componentname; |
54 | this.cmdparser = cmdparser; | 54 | this.cmdparser = cmdparser; |
@@ -77,19 +77,7 @@ namespace OpenSim.Framework.Console | |||
77 | Notice(format,args); | 77 | Notice(format,args); |
78 | return; | 78 | return; |
79 | } | 79 | } |
80 | 80 | ||
81 | [Obsolete("WriteLine(msg,args) has been depreciated, use WriteLine(priority,msg,args) instead.")] | ||
82 | public void WriteLine(string format, params object[] args) | ||
83 | { | ||
84 | Log.WriteLine(format, args); | ||
85 | Log.Flush(); | ||
86 | if (!m_silent) | ||
87 | { | ||
88 | System.Console.WriteLine(format, args); | ||
89 | } | ||
90 | return; | ||
91 | } | ||
92 | |||
93 | public void WriteLine(LogPriority importance, string format, params object[] args) | 81 | public void WriteLine(LogPriority importance, string format, params object[] args) |
94 | { | 82 | { |
95 | Log.WriteLine(format, args); | 83 | Log.WriteLine(format, args); |
@@ -226,7 +214,7 @@ namespace OpenSim.Framework.Console | |||
226 | cmdparser.Show(ShowWhat); | 214 | cmdparser.Show(ShowWhat); |
227 | } | 215 | } |
228 | 216 | ||
229 | public void MainConsolePrompt() | 217 | public void MainLogPrompt() |
230 | { | 218 | { |
231 | string[] tempstrarray; | 219 | string[] tempstrarray; |
232 | string tempstr = this.CmdPrompt(this.componentname + "# "); | 220 | string tempstr = this.CmdPrompt(this.componentname + "# "); |
diff --git a/Common/OpenSim.Framework.Console/MainConsole.cs b/Common/OpenSim.Framework.Console/MainLog.cs index 01aa3d1..d7f945e 100644 --- a/Common/OpenSim.Framework.Console/MainConsole.cs +++ b/Common/OpenSim.Framework.Console/MainLog.cs | |||
@@ -29,11 +29,11 @@ using System; | |||
29 | 29 | ||
30 | namespace OpenSim.Framework.Console | 30 | namespace OpenSim.Framework.Console |
31 | { | 31 | { |
32 | public class MainConsole { | 32 | public class MainLog { |
33 | 33 | ||
34 | private static ConsoleBase instance; | 34 | private static LogBase instance; |
35 | 35 | ||
36 | public static ConsoleBase Instance | 36 | public static LogBase Instance |
37 | { | 37 | { |
38 | get | 38 | get |
39 | { | 39 | { |
diff --git a/Common/OpenSim.Framework.Console/OpenSim.Framework.Console.csproj b/Common/OpenSim.Framework.Console/OpenSim.Framework.Console.csproj index 7af0eca..fef5108 100644 --- a/Common/OpenSim.Framework.Console/OpenSim.Framework.Console.csproj +++ b/Common/OpenSim.Framework.Console/OpenSim.Framework.Console.csproj | |||
@@ -1,4 +1,4 @@ | |||
1 | <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | 1 | <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
2 | <PropertyGroup> | 2 | <PropertyGroup> |
3 | <ProjectType>Local</ProjectType> | 3 | <ProjectType>Local</ProjectType> |
4 | <ProductVersion>8.0.50727</ProductVersion> | 4 | <ProductVersion>8.0.50727</ProductVersion> |
@@ -6,7 +6,8 @@ | |||
6 | <ProjectGuid>{A7CD0630-0000-0000-0000-000000000000}</ProjectGuid> | 6 | <ProjectGuid>{A7CD0630-0000-0000-0000-000000000000}</ProjectGuid> |
7 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | 7 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
8 | <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | 8 | <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
9 | <ApplicationIcon></ApplicationIcon> | 9 | <ApplicationIcon> |
10 | </ApplicationIcon> | ||
10 | <AssemblyKeyContainerName> | 11 | <AssemblyKeyContainerName> |
11 | </AssemblyKeyContainerName> | 12 | </AssemblyKeyContainerName> |
12 | <AssemblyName>OpenSim.Framework.Console</AssemblyName> | 13 | <AssemblyName>OpenSim.Framework.Console</AssemblyName> |
@@ -15,9 +16,11 @@ | |||
15 | <DefaultTargetSchema>IE50</DefaultTargetSchema> | 16 | <DefaultTargetSchema>IE50</DefaultTargetSchema> |
16 | <DelaySign>false</DelaySign> | 17 | <DelaySign>false</DelaySign> |
17 | <OutputType>Library</OutputType> | 18 | <OutputType>Library</OutputType> |
18 | <AppDesignerFolder></AppDesignerFolder> | 19 | <AppDesignerFolder> |
20 | </AppDesignerFolder> | ||
19 | <RootNamespace>OpenSim.Framework.Console</RootNamespace> | 21 | <RootNamespace>OpenSim.Framework.Console</RootNamespace> |
20 | <StartupObject></StartupObject> | 22 | <StartupObject> |
23 | </StartupObject> | ||
21 | <FileUpgradeFlags> | 24 | <FileUpgradeFlags> |
22 | </FileUpgradeFlags> | 25 | </FileUpgradeFlags> |
23 | </PropertyGroup> | 26 | </PropertyGroup> |
@@ -28,7 +31,8 @@ | |||
28 | <ConfigurationOverrideFile> | 31 | <ConfigurationOverrideFile> |
29 | </ConfigurationOverrideFile> | 32 | </ConfigurationOverrideFile> |
30 | <DefineConstants>TRACE;DEBUG</DefineConstants> | 33 | <DefineConstants>TRACE;DEBUG</DefineConstants> |
31 | <DocumentationFile></DocumentationFile> | 34 | <DocumentationFile> |
35 | </DocumentationFile> | ||
32 | <DebugSymbols>True</DebugSymbols> | 36 | <DebugSymbols>True</DebugSymbols> |
33 | <FileAlignment>4096</FileAlignment> | 37 | <FileAlignment>4096</FileAlignment> |
34 | <Optimize>False</Optimize> | 38 | <Optimize>False</Optimize> |
@@ -37,7 +41,8 @@ | |||
37 | <RemoveIntegerChecks>False</RemoveIntegerChecks> | 41 | <RemoveIntegerChecks>False</RemoveIntegerChecks> |
38 | <TreatWarningsAsErrors>False</TreatWarningsAsErrors> | 42 | <TreatWarningsAsErrors>False</TreatWarningsAsErrors> |
39 | <WarningLevel>4</WarningLevel> | 43 | <WarningLevel>4</WarningLevel> |
40 | <NoWarn></NoWarn> | 44 | <NoWarn> |
45 | </NoWarn> | ||
41 | </PropertyGroup> | 46 | </PropertyGroup> |
42 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | 47 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
43 | <AllowUnsafeBlocks>False</AllowUnsafeBlocks> | 48 | <AllowUnsafeBlocks>False</AllowUnsafeBlocks> |
@@ -46,7 +51,8 @@ | |||
46 | <ConfigurationOverrideFile> | 51 | <ConfigurationOverrideFile> |
47 | </ConfigurationOverrideFile> | 52 | </ConfigurationOverrideFile> |
48 | <DefineConstants>TRACE</DefineConstants> | 53 | <DefineConstants>TRACE</DefineConstants> |
49 | <DocumentationFile></DocumentationFile> | 54 | <DocumentationFile> |
55 | </DocumentationFile> | ||
50 | <DebugSymbols>False</DebugSymbols> | 56 | <DebugSymbols>False</DebugSymbols> |
51 | <FileAlignment>4096</FileAlignment> | 57 | <FileAlignment>4096</FileAlignment> |
52 | <Optimize>True</Optimize> | 58 | <Optimize>True</Optimize> |
@@ -55,10 +61,11 @@ | |||
55 | <RemoveIntegerChecks>False</RemoveIntegerChecks> | 61 | <RemoveIntegerChecks>False</RemoveIntegerChecks> |
56 | <TreatWarningsAsErrors>False</TreatWarningsAsErrors> | 62 | <TreatWarningsAsErrors>False</TreatWarningsAsErrors> |
57 | <WarningLevel>4</WarningLevel> | 63 | <WarningLevel>4</WarningLevel> |
58 | <NoWarn></NoWarn> | 64 | <NoWarn> |
65 | </NoWarn> | ||
59 | </PropertyGroup> | 66 | </PropertyGroup> |
60 | <ItemGroup> | 67 | <ItemGroup> |
61 | <Reference Include="System" > | 68 | <Reference Include="System"> |
62 | <HintPath>System.dll</HintPath> | 69 | <HintPath>System.dll</HintPath> |
63 | <Private>False</Private> | 70 | <Private>False</Private> |
64 | </Reference> | 71 | </Reference> |
@@ -69,13 +76,13 @@ | |||
69 | <Compile Include="AssemblyInfo.cs"> | 76 | <Compile Include="AssemblyInfo.cs"> |
70 | <SubType>Code</SubType> | 77 | <SubType>Code</SubType> |
71 | </Compile> | 78 | </Compile> |
72 | <Compile Include="ConsoleBase.cs"> | 79 | <Compile Include="LogBase.cs"> |
73 | <SubType>Code</SubType> | 80 | <SubType>Code</SubType> |
74 | </Compile> | 81 | </Compile> |
75 | <Compile Include="ConsoleCallbacksBase.cs"> | 82 | <Compile Include="ConsoleCallbacksBase.cs"> |
76 | <SubType>Code</SubType> | 83 | <SubType>Code</SubType> |
77 | </Compile> | 84 | </Compile> |
78 | <Compile Include="MainConsole.cs"> | 85 | <Compile Include="MainLog.cs"> |
79 | <SubType>Code</SubType> | 86 | <SubType>Code</SubType> |
80 | </Compile> | 87 | </Compile> |
81 | </ItemGroup> | 88 | </ItemGroup> |
@@ -86,4 +93,4 @@ | |||
86 | <PostBuildEvent> | 93 | <PostBuildEvent> |
87 | </PostBuildEvent> | 94 | </PostBuildEvent> |
88 | </PropertyGroup> | 95 | </PropertyGroup> |
89 | </Project> | 96 | </Project> \ No newline at end of file |