add new field to config.xml

This commit is contained in:
Anton Georgiev 2016-08-23 19:41:31 +00:00
parent 19f0283f39
commit 6ba64ed749
3 changed files with 8 additions and 15 deletions

View File

@ -16,7 +16,7 @@
showLogoutWindow="true" showLayoutTools="true" confirmLogout="true"
showRecordingNotification="true"/>
<meeting muteOnStart="false" />
<logging enabled="true" target="trace" level="info" format="{dateUTC} {time} :: {name} :: [{logLevel}] {message}" uri="http://HOST"/>
<logging enabled="true" target="trace" level="info" format="{dateUTC} {time} :: {name} :: [{logLevel}] {message}" uri="http://HOST" logPattern=".*"/>
<lock disableCamForLockedUsers="false" disableMicForLockedUsers="false" disablePrivateChatForLockedUsers="false"
disablePublicChatForLockedUsers="false" lockLayoutForLockedUsers="false" lockOnJoin="true" lockOnJoinConfigurable="false"/>

View File

@ -75,7 +75,7 @@ package org.bigbluebutton.common {
private static var loggingTargetName:String = "trace";
private static var logPattern:String = "/^*$/g";
private static var logPattern:String = ".*";
/**
* Initialises logging from the application configuration.

View File

@ -77,17 +77,11 @@ package org.bigbluebutton.util.logging
public function log(name:String, shortName:String, level:int, timeStamp:Number, message:*, parameters:Array, person:String):void
{
// check if contains info from config field
import org.bigbluebutton.main.api.JSLog;
var logData:Object = new Object();
var formattedMessage:String=_formatter.format(name, shortName, level, timeStamp, message, parameters, person);
// check if contains info from config field
var reg1:RegExp = new RegExp(_logPattern, "g");
// JSLog.debug("~~~~~~log:" + formattedMessage, new Object());
if(reg1.test(formattedMessage)) { // only log messages of the specified pattern
// JSLog.debug(reg1.source + " check was true", new Object());
if (UsersUtil.getInternalMeetingID() != null && UsersUtil.getMyUserID() != "UNKNOWN USER") {
var arr:Array = new Array ();
arr.push({"name":name, "shortName":shortName, "level":level, "timeStamp":timeStamp, "message":formattedMessage, "parameters":parameters, "person":person});
@ -146,8 +140,7 @@ package org.bigbluebutton.util.logging
{
if (!_sending)
{
/*_sending=true;
_variables.message=_queue[0];
_sending=true;
// We will alwasy recycle the URLRequest instance and use it to send logging HTTP requests
if (!_request)
@ -156,9 +149,9 @@ package org.bigbluebutton.util.logging
_request.method=URLRequestMethod.POST;
}
var JsonObj:String = JSON.stringify(_variables);
_request.contentType = "application/json";
_request.data=JsonObj;
var logMessage:String = _queue[0];
_request.data = logMessage;
var loader:URLLoader=new URLLoader();
loader.addEventListener(IOErrorEvent.IO_ERROR, function(event:Event):void
@ -168,10 +161,10 @@ package org.bigbluebutton.util.logging
});
loader.addEventListener(Event.COMPLETE, function(event:Event):void
{
removeFromQueue(_variables.message);
removeFromQueue(logMessage);
_sending=false;
});
loader.load(_request);*/
loader.load(_request);
}
}
}