log.setLevel

From RPTools Wiki
Revision as of 14:02, 18 April 2019 by Phergus (talk | contribs) (Created page with "{{MacroFunction |name=log.setLevel |trusted=true |version=1.5.2 |description= Set the logging level for the specified logger. <br>The log file will be found in your user dire...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

log.setLevel() Function

 Note: This function can only be used in a Trusted Macro

Introduced in version 1.5.2
Set the logging level for the specified logger.
The log file will be found in your user directory under .maptool-rptools/logs.

Usage

log.setLevel(logger, loglevel)

Parameters

  • logger - String containing a logger name.
  • loglevel - String containing a log level: DEBUG,ERROR,FATAL,INFO,WARN

Example

Set the logging level for the MapToolLineParser to WARN.
[r: log.setLevel("net.rptools.maptool.client.MapToolLineParser","WARN")]

Returns:

WARN

See Also