mirror of
https://github.com/Misterblue/convoar.git
synced 2026-08-14 00:57:55 +00:00
Add other functions to LoggerLog4Net so the logger can be passed in.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 @@
|
||||
Thu 02/14/2019 21:25:46.56
|
||||
Thu 02/14/2019 21:58:40.72
|
||||
|
||||
@@ -1 +1 @@
|
||||
880a5c0e5e2977d16ecc57085522196a61d9ee62
|
||||
9f287cbd10bc9e65bc6c28e5c7edbc463500fcf4
|
||||
|
||||
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Reference in New Issue
Block a user