Skip to content

ThinkGeoDebugger

Namespace: ThinkGeo.Core

public static class ThinkGeoDebugger

Inheritance ObjectThinkGeoDebugger

Properties

LogLevel

public static ThinkGeoLogLevel LogLevel { get; set; }

Property Value

ThinkGeoLogLevel

LogType

public static ThinkGeoLogType LogType { get; set; }

Property Value

ThinkGeoLogType

LogStreamWriter

If LogStreamWriter is not null, it will also log to this StreamWriter. ThinkGeo just call LogStreamWriter.WriteLine() internally, and you need to manage this StreamWriter to make it work as you expected (By calling Flush(), Close(), handle exceptions, etc properly).

public static StreamWriter LogStreamWriter { get; set; }

Property Value

StreamWriter

LogToConsole

Whether to write the logs to Console

public static bool LogToConsole { get; set; }

Property Value

Boolean

DisplayTileId

Once Enabled, the TileID will be displayed on the tile.

public static bool DisplayTileId { get; set; }

Property Value

Boolean

Remarks:

It only affects the tiles on the map, the tile ID will not be saved in the cache.

Methods

Log(String, ThinkGeoLogType, ThinkGeoLogLevel)

public static void Log(string message, ThinkGeoLogType logType, ThinkGeoLogLevel logLevel)

Parameters

message String

logType ThinkGeoLogType

logLevel ThinkGeoLogLevel