mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
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.
This commit is contained in:
@@ -37,6 +37,8 @@ namespace OpenSim.Framework.Data.MSSQL
|
||||
{
|
||||
internal class MSSQLAssetData : IAssetProvider
|
||||
{
|
||||
private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
private MSSQLManager database;
|
||||
|
||||
#region IAssetProvider Members
|
||||
@@ -46,7 +48,7 @@ namespace OpenSim.Framework.Data.MSSQL
|
||||
// null as the version, indicates that the table didn't exist
|
||||
if (tableName == null)
|
||||
{
|
||||
MainLog.Instance.Notice("ASSETS", "Creating new database tables");
|
||||
m_log.Info("[ASSETS]: Creating new database tables");
|
||||
database.ExecuteResourceSql("CreateAssetsTable.sql");
|
||||
return;
|
||||
}
|
||||
@@ -164,7 +166,7 @@ namespace OpenSim.Framework.Data.MSSQL
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
MainLog.Instance.Error(e.ToString());
|
||||
m_log.Error(e.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user