diff options
author | Jeff Ames | 2008-02-05 19:44:27 +0000 |
---|---|---|
committer | Jeff Ames | 2008-02-05 19:44:27 +0000 |
commit | 6ed5283bc06a62f38eb517e67b975832b603bf61 (patch) | |
tree | e5f635018789b73a99ddeca0883a68368fa5eece /OpenSim/Framework/Communications/CommunicationsManager.cs | |
parent | Cut down on the number of packets sent during terraforming. Terraforming shou... (diff) | |
download | opensim-SC_OLD-6ed5283bc06a62f38eb517e67b975832b603bf61.zip opensim-SC_OLD-6ed5283bc06a62f38eb517e67b975832b603bf61.tar.gz opensim-SC_OLD-6ed5283bc06a62f38eb517e67b975832b603bf61.tar.bz2 opensim-SC_OLD-6ed5283bc06a62f38eb517e67b975832b603bf61.tar.xz |
Converted logging to use log4net.
Changed LogBase to ConsoleBase, which handles console I/O.
This is mostly an in-place conversion, so lots of refactoring can still be done.
Diffstat (limited to 'OpenSim/Framework/Communications/CommunicationsManager.cs')
-rw-r--r-- | OpenSim/Framework/Communications/CommunicationsManager.cs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/OpenSim/Framework/Communications/CommunicationsManager.cs b/OpenSim/Framework/Communications/CommunicationsManager.cs index dd7c168..f6cfda7 100644 --- a/OpenSim/Framework/Communications/CommunicationsManager.cs +++ b/OpenSim/Framework/Communications/CommunicationsManager.cs | |||
@@ -36,6 +36,8 @@ namespace OpenSim.Framework.Communications | |||
36 | { | 36 | { |
37 | public class CommunicationsManager | 37 | public class CommunicationsManager |
38 | { | 38 | { |
39 | private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | ||
40 | |||
39 | protected IUserService m_userService; | 41 | protected IUserService m_userService; |
40 | 42 | ||
41 | public IUserService UserService | 43 | public IUserService UserService |
@@ -114,11 +116,11 @@ namespace OpenSim.Framework.Communications | |||
114 | 116 | ||
115 | if (cmmdParams.Length < 2) | 117 | if (cmmdParams.Length < 2) |
116 | { | 118 | { |
117 | firstName = MainLog.Instance.CmdPrompt("First name", "Default"); | 119 | firstName = MainConsole.Instance.CmdPrompt("First name", "Default"); |
118 | lastName = MainLog.Instance.CmdPrompt("Last name", "User"); | 120 | lastName = MainConsole.Instance.CmdPrompt("Last name", "User"); |
119 | password = MainLog.Instance.PasswdPrompt("Password"); | 121 | password = MainConsole.Instance.PasswdPrompt("Password"); |
120 | regX = Convert.ToUInt32(MainLog.Instance.CmdPrompt("Start Region X", "1000")); | 122 | regX = Convert.ToUInt32(MainConsole.Instance.CmdPrompt("Start Region X", "1000")); |
121 | regY = Convert.ToUInt32(MainLog.Instance.CmdPrompt("Start Region Y", "1000")); | 123 | regY = Convert.ToUInt32(MainConsole.Instance.CmdPrompt("Start Region Y", "1000")); |
122 | } | 124 | } |
123 | else | 125 | else |
124 | { | 126 | { |