|
@@ -150,7 +150,7 @@ public class LoggingPlugin extends BaseCommandPlugin implements ActionListener,
|
150
|
150
|
/** {@inheritDoc} */
|
151
|
151
|
@Override
|
152
|
152
|
public void domainUpdated() {
|
153
|
|
- identity.setOption(getDomain(), "general.directory",
|
|
153
|
+ identity.setOption(pluginInfo.getDomain(), "general.directory",
|
154
|
154
|
identityController.getConfigurationDirectory() + "logs" + System.getProperty(
|
155
|
155
|
"file.separator"));
|
156
|
156
|
}
|
|
@@ -174,7 +174,7 @@ public class LoggingPlugin extends BaseCommandPlugin implements ActionListener,
|
174
|
174
|
}
|
175
|
175
|
}
|
176
|
176
|
|
177
|
|
- config.addChangeListener(getDomain(), this);
|
|
177
|
+ config.addChangeListener(pluginInfo.getDomain(), this);
|
178
|
178
|
|
179
|
179
|
actionController.registerListener(this,
|
180
|
180
|
CoreActionType.CHANNEL_OPENED,
|
|
@@ -264,62 +264,62 @@ public class LoggingPlugin extends BaseCommandPlugin implements ActionListener,
|
264
|
264
|
"Advanced configuration for Logging plugin. You shouldn't need to edit this unless you know what you are doing.");
|
265
|
265
|
|
266
|
266
|
general.addSetting(new PreferencesSetting(PreferencesType.DIRECTORY,
|
267
|
|
- getDomain(), "general.directory", "Directory",
|
|
267
|
+ pluginInfo.getDomain(), "general.directory", "Directory",
|
268
|
268
|
"Directory for log files", manager.getConfigManager(),
|
269
|
269
|
manager.getIdentity()));
|
270
|
270
|
general.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN,
|
271
|
|
- getDomain(), "general.networkfolders",
|
|
271
|
+ pluginInfo.getDomain(), "general.networkfolders",
|
272
|
272
|
"Separate logs by network",
|
273
|
273
|
"Should the files be stored in a sub-dir with the networks name?",
|
274
|
274
|
manager.getConfigManager(), manager.getIdentity()));
|
275
|
275
|
general.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN,
|
276
|
|
- getDomain(), "general.addtime", "Timestamp logs",
|
|
276
|
+ pluginInfo.getDomain(), "general.addtime", "Timestamp logs",
|
277
|
277
|
"Should a timestamp be added to the log files?",
|
278
|
278
|
manager.getConfigManager(), manager.getIdentity()));
|
279
|
279
|
general.addSetting(new PreferencesSetting(PreferencesType.TEXT,
|
280
|
|
- getDomain(), "general.timestamp", "Timestamp format",
|
|
280
|
+ pluginInfo.getDomain(), "general.timestamp", "Timestamp format",
|
281
|
281
|
"The String to pass to 'SimpleDateFormat' to format the timestamp",
|
282
|
282
|
manager.getConfigManager(), manager.getIdentity()));
|
283
|
283
|
general.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN,
|
284
|
|
- getDomain(), "general.stripcodes", "Strip Control Codes",
|
|
284
|
+ pluginInfo.getDomain(), "general.stripcodes", "Strip Control Codes",
|
285
|
285
|
"Remove known irc control codes from lines before saving?",
|
286
|
286
|
manager.getConfigManager(), manager.getIdentity()));
|
287
|
287
|
general.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN,
|
288
|
|
- getDomain(), "general.channelmodeprefix",
|
|
288
|
+ pluginInfo.getDomain(), "general.channelmodeprefix",
|
289
|
289
|
"Show channel mode prefix", "Show the @,+ etc next to nicknames",
|
290
|
290
|
manager.getConfigManager(), manager.getIdentity()));
|
291
|
291
|
|
292
|
292
|
backbuffer.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN,
|
293
|
|
- getDomain(), "backbuffer.autobackbuffer", "Automatically display",
|
|
293
|
+ pluginInfo.getDomain(), "backbuffer.autobackbuffer", "Automatically display",
|
294
|
294
|
"Automatically display the backbuffer when a channel is joined",
|
295
|
295
|
manager.getConfigManager(), manager.getIdentity()));
|
296
|
296
|
backbuffer.addSetting(new PreferencesSetting(PreferencesType.COLOUR,
|
297
|
|
- getDomain(), "backbuffer.colour", "Colour to use for display",
|
|
297
|
+ pluginInfo.getDomain(), "backbuffer.colour", "Colour to use for display",
|
298
|
298
|
"Colour used when displaying the backbuffer",
|
299
|
299
|
manager.getConfigManager(), manager.getIdentity()));
|
300
|
300
|
backbuffer.addSetting(new PreferencesSetting(PreferencesType.INTEGER,
|
301
|
|
- getDomain(), "backbuffer.lines", "Number of lines to show",
|
|
301
|
+ pluginInfo.getDomain(), "backbuffer.lines", "Number of lines to show",
|
302
|
302
|
"Number of lines used when displaying backbuffer",
|
303
|
303
|
manager.getConfigManager(), manager.getIdentity()));
|
304
|
304
|
backbuffer.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN,
|
305
|
|
- getDomain(), "backbuffer.timestamp", "Show Formatter-Timestamp",
|
|
305
|
+ pluginInfo.getDomain(), "backbuffer.timestamp", "Show Formatter-Timestamp",
|
306
|
306
|
"Should the line be added to the frame with the timestamp from "
|
307
|
307
|
+ "the formatter aswell as the file contents",
|
308
|
308
|
manager.getConfigManager(), manager.getIdentity()));
|
309
|
309
|
|
310
|
310
|
advanced.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN,
|
311
|
|
- getDomain(), "advanced.filenamehash", "Add Filename hash",
|
|
311
|
+ pluginInfo.getDomain(), "advanced.filenamehash", "Add Filename hash",
|
312
|
312
|
"Add the MD5 hash of the channel/client name to the filename. "
|
313
|
313
|
+ "(This is used to allow channels with similar names "
|
314
|
314
|
+ "(ie a _ not a -) to be logged separately)",
|
315
|
315
|
manager.getConfigManager(), manager.getIdentity()));
|
316
|
316
|
|
317
|
317
|
advanced.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN,
|
318
|
|
- getDomain(), "advanced.usedate", "Use Date directories",
|
|
318
|
+ pluginInfo.getDomain(), "advanced.usedate", "Use Date directories",
|
319
|
319
|
"Should the log files be in separate directories based on the date?",
|
320
|
320
|
manager.getConfigManager(), manager.getIdentity()));
|
321
|
321
|
advanced.addSetting(new PreferencesSetting(PreferencesType.TEXT,
|
322
|
|
- getDomain(), "advanced.usedateformat", "Archive format",
|
|
322
|
+ pluginInfo.getDomain(), "advanced.usedateformat", "Archive format",
|
323
|
323
|
"The String to pass to 'SimpleDateFormat' to format the "
|
324
|
324
|
+ "directory name(s) for archiving",
|
325
|
325
|
manager.getConfigManager(), manager.getIdentity()));
|
|
@@ -934,20 +934,21 @@ public class LoggingPlugin extends BaseCommandPlugin implements ActionListener,
|
934
|
934
|
|
935
|
935
|
/** Updates cached settings. */
|
936
|
936
|
public void setCachedSettings() {
|
937
|
|
- networkfolders = config.getOptionBool(getDomain(), "general.networkfolders");
|
938
|
|
- filenamehash = config.getOptionBool(getDomain(), "advanced.filenamehash");
|
939
|
|
- addtime = config.getOptionBool(getDomain(), "general.addtime");
|
940
|
|
- stripcodes = config.getOptionBool(getDomain(), "general.stripcodes");
|
941
|
|
- channelmodeprefix = config.getOptionBool(getDomain(), "general.channelmodeprefix");
|
942
|
|
- autobackbuffer = config.getOptionBool(getDomain(), "backbuffer.autobackbuffer");
|
943
|
|
- backbufferTimestamp = config.getOptionBool(getDomain(), "backbuffer.timestamp");
|
944
|
|
- usedate = config.getOptionBool(getDomain(), "advanced.usedate");
|
945
|
|
- timestamp = config.getOption(getDomain(), "general.timestamp");
|
946
|
|
- usedateformat = config.getOption(getDomain(), "advanced.usedateformat");
|
947
|
|
- historyLines = config.getOptionInt(getDomain(), "history.lines");
|
948
|
|
- colour = config.getOption(getDomain(), "backbuffer.colour");
|
949
|
|
- backbufferLines = config.getOptionInt(getDomain(), "backbuffer.lines");
|
950
|
|
- logDirectory = config.getOption(getDomain(), "general.directory");
|
|
937
|
+ networkfolders = config.getOptionBool(pluginInfo.getDomain(), "general.networkfolders");
|
|
938
|
+ filenamehash = config.getOptionBool(pluginInfo.getDomain(), "advanced.filenamehash");
|
|
939
|
+ addtime = config.getOptionBool(pluginInfo.getDomain(), "general.addtime");
|
|
940
|
+ stripcodes = config.getOptionBool(pluginInfo.getDomain(), "general.stripcodes");
|
|
941
|
+ channelmodeprefix = config.getOptionBool(pluginInfo.getDomain(),
|
|
942
|
+ "general.channelmodeprefix");
|
|
943
|
+ autobackbuffer = config.getOptionBool(pluginInfo.getDomain(), "backbuffer.autobackbuffer");
|
|
944
|
+ backbufferTimestamp = config.getOptionBool(pluginInfo.getDomain(), "backbuffer.timestamp");
|
|
945
|
+ usedate = config.getOptionBool(pluginInfo.getDomain(), "advanced.usedate");
|
|
946
|
+ timestamp = config.getOption(pluginInfo.getDomain(), "general.timestamp");
|
|
947
|
+ usedateformat = config.getOption(pluginInfo.getDomain(), "advanced.usedateformat");
|
|
948
|
+ historyLines = config.getOptionInt(pluginInfo.getDomain(), "history.lines");
|
|
949
|
+ colour = config.getOption(pluginInfo.getDomain(), "backbuffer.colour");
|
|
950
|
+ backbufferLines = config.getOptionInt(pluginInfo.getDomain(), "backbuffer.lines");
|
|
951
|
+ logDirectory = config.getOption(pluginInfo.getDomain(), "general.directory");
|
951
|
952
|
}
|
952
|
953
|
|
953
|
954
|
/** Open File. */
|