Add other functions to LoggerLog4Net so the logger can be passed in.

This commit is contained in:
Robert Adams
2019-02-14 21:59:09 -08:00
parent 9f287cbd10
commit 4b63f5c3a6
8 changed files with 18 additions and 4 deletions
+15 -1
View File
@@ -14,6 +14,7 @@
* limitations under the License.
*/
using System;
using System.Reflection;
using log4net;
@@ -52,9 +53,22 @@ namespace org.herbal3d.cs.CommonEntitiesUtil {
// Do logging with Log4net
public class LoggerLog4Net : BLogger {
private static readonly ILog _log = LogManager.GetLogger("convoar");
private static string _logHeader = "[Logger]";
private ILog _log;
public LoggerLog4Net() {
_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
}
public LoggerLog4Net(string pModuleName) {
_log = LogManager.GetLogger(pModuleName);
}
public LoggerLog4Net(ILog pLogger) {
_log = pLogger;
}
private bool _verbose = false;
public override void SetVerbose(bool value) {
_verbose = value;
+1 -1
View File
@@ -97,7 +97,7 @@ namespace org.herbal3d.convoar {
ArchiveReadRequest archive = new ArchiveReadRequest(scene, _params.P<string>("InputOAR"), Guid.Empty, options);
archive.DearchiveRegion(false);
return await _converter.ConvertRegionToBScene(scene, assetManager);
return await _converter.ConvertRegionToBScene(scene, assetManager);
}
// Create an OpenSimulator Scene and add enough auxillery services and objects
+1 -1
View File
@@ -1 +1 @@
Thu 02/14/2019 21:25:46.56
Thu 02/14/2019 21:58:40.72
+1 -1
View File
@@ -1 +1 @@
880a5c0e5e2977d16ecc57085522196a61d9ee62
9f287cbd10bc9e65bc6c28e5c7edbc463500fcf4
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.