Enhances logging manager, Uses concept of Level and above for logging, The levels are Debug, Error, Info, Warn and None. Setting Settings.LOG_LEVEL to any of these settings will get you that level and above only.

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1850 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
Jim Radford
2008-05-08 16:58:09 +00:00
parent 9f10c3273b
commit 8135e2f4f3
8 changed files with 150 additions and 39 deletions

View File

@@ -12,6 +12,7 @@ namespace libsecondlife.TestClient
{
AutoResetEvent UploadCompleteEvent = new AutoResetEvent(false);
LLUUID TextureID = LLUUID.Zero;
DateTime start;
public UploadImageCommand(TestClient testClient)
{
@@ -39,7 +40,7 @@ namespace libsecondlife.TestClient
if (jpeg2k == null)
return "Failed to compress image to JPEG2000";
Console.WriteLine("Finished compressing image to JPEG2000, uploading...");
start = DateTime.Now;
DoUpload(jpeg2k, inventoryName);
if (UploadCompleteEvent.WaitOne((int)timeout, false))
@@ -75,6 +76,7 @@ namespace libsecondlife.TestClient
success, status, itemID, assetID));
TextureID = assetID;
Console.WriteLine(String.Format("Upload took {0}", DateTime.Now.Subtract(start)));
UploadCompleteEvent.Set();
}
);