aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Util.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Util.cs')
-rw-r--r--OpenSim/Framework/Util.cs51
1 files changed, 38 insertions, 13 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs
index 6d679f2..0ec24e6 100644
--- a/OpenSim/Framework/Util.cs
+++ b/OpenSim/Framework/Util.cs
@@ -63,22 +63,34 @@ namespace OpenSim.Framework
63 None = 0, 63 None = 0,
64 64
65 // folded perms 65 // folded perms
66 foldedTransfer = 1, 66 FoldedTransfer = 1,
67 foldedModify = 1 << 1, 67 FoldedModify = 1 << 1,
68 foldedCopy = 1 << 2, 68 FoldedCopy = 1 << 2,
69 69 FoldedExport = 1 << 3,
70 foldedMask = 0x07, 70
71 // DO NOT USE THIS FOR NEW WORK. IT IS DEPRECATED AND
72 // EXISTS ONLY TO REACT TO EXISTING OBJECTS HAVING IT.
73 // NEW CODE SHOULD NEVER SET THIS BIT!
74 // Use InventoryItemFlags.ObjectSlamPerm in the Flags field of
75 // this legacy slam bit. It comes from prior incomplete
76 // understanding of the code and the prohibition on
77 // reading viewer code that used to be in place.
78 Slam = (1 << 4),
79
80 FoldedMask = 0x0f,
71 81
72 // 82 //
73 Transfer = 1 << 13, 83 Transfer = 1 << 13, // 0x02000
74 Modify = 1 << 14, 84 Modify = 1 << 14, // 0x04000
75 Copy = 1 << 15, 85 Copy = 1 << 15, // 0x08000
76 Export = 1 << 16, 86 Export = 1 << 16, // 0x10000
77 Move = 1 << 19, 87 Move = 1 << 19, // 0x80000
78 Damage = 1 << 20, 88 Damage = 1 << 20, // 0x100000 does not seem to be in use
79 // All does not contain Export, which is special and must be 89 // All does not contain Export, which is special and must be
80 // explicitly given 90 // explicitly given
81 All = (1 << 13) | (1 << 14) | (1 << 15) | (1 << 19) 91 All = 0x8e000,
92 AllAndExport = 0x9e000,
93 AllEffective = 0x9e000
82 } 94 }
83 95
84 /// <summary> 96 /// <summary>
@@ -1180,7 +1192,7 @@ namespace OpenSim.Framework
1180 { 1192 {
1181 foreach (IAppender appender in LogManager.GetRepository().GetAppenders()) 1193 foreach (IAppender appender in LogManager.GetRepository().GetAppenders())
1182 { 1194 {
1183 if (appender is FileAppender) 1195 if (appender is FileAppender && appender.Name == "LogFileAppender")
1184 { 1196 {
1185 return ((FileAppender)appender).File; 1197 return ((FileAppender)appender).File;
1186 } 1198 }
@@ -1189,6 +1201,19 @@ namespace OpenSim.Framework
1189 return "./OpenSim.log"; 1201 return "./OpenSim.log";
1190 } 1202 }
1191 1203
1204 public static string statsLogFile()
1205 {
1206 foreach (IAppender appender in LogManager.GetRepository().GetAppenders())
1207 {
1208 if (appender is FileAppender && appender.Name == "StatsLogFileAppender")
1209 {
1210 return ((FileAppender)appender).File;
1211 }
1212 }
1213
1214 return "./OpenSimStats.log";
1215 }
1216
1192 public static string logDir() 1217 public static string logDir()
1193 { 1218 {
1194 return Path.GetDirectoryName(logFile()); 1219 return Path.GetDirectoryName(logFile());