log.getLoggers
exampleFunction() Function
Note: This function can only be used in a Trusted Macro
• Introduced in version 1.5.2
Returns a JSON array of available loggers and the current logging level for each.
Usage
log.getLoggers()
Parameters None.
Example
Get a list of available loggers and format the JSON result.
<pre>[r: json.indent(log.getLoggers())]</pre>
Returns:
[
{
"name": "net.rptools.lib.io.PackedFile",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.swing.AbeillePanel",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.model.Grid",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.ui.token.BarTokenOverlay",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.ui.tokenpanel.InitiativeTransferHandler",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.swing.AppHomeDiskSpaceStatusBar",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.AutoSaveManager",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.MapToolVariableResolver",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.TransferableHelper",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.ChatAutoSave",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.ui.zone.ZoneView",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.ui.chat.SmileyChatTranslationRuleGroup",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.ui.syntax.MapToolScriptSyntax",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.AppState",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.AppPreferences",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.model.AssetManager",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.swing.ImageCacheStatusBar",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.ui.token.ImageAssetPanel",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.model.AssetLoader",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.ui.chat.RegularExpressionTranslationRule",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.model.Zone",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.ui.zone.ZoneRenderer",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.language.I18N",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.ui.syntax.MapToolScriptAutoComplete",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.swing.AssetCacheStatusBar",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.AppSetup",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.functions.Base64Functions",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.model.MacroButtonProperties",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.functions.LogFunctions",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.AppUpdate",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.swing.ImageLoaderCache",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.ui.macrobuttons.panels.SelectionPanel",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.MapTool",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.model.InitiativeList",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.tool.drawing.UndoPerZone",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.ui.assetpanel.ImageFileImagePanelModel",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.ui.zone.PartitionedDrawableRenderer",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.macro.MacroManager",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.ui.MapToolDockListener",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.swing.MapToolEventQueue",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.functions.MacroLinkFunction",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.server.MapToolServer",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.functions.TokenMoveFunctions",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.AppUtil",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.AppActions",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.util.ImageManager",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.MapToolLineParser",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.ui.MapToolFrame",
"level": "ERROR"
},
{
"name": "macro-logger",
"level": "ERROR"
},
{
"name": "net.rptools.lib.FileUtil",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.util.PersistenceUtil",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.ui.lookuptable.LookupTableImagePanelModel",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.AssetURLStreamHandler",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.server.MapToolServerConnection",
"level": "ERROR"
},
{
"name": "net.rptools.maptool.client.tool.PointerTool",
"level": "ERROR"
}
]