Select to view content in your preferred language

ArcGISRuntimne Message Logging

1794
2
Jump to solution
05-03-2013 07:36 AM
CarlosColón-Maldonado
Occasional Contributor III
Greetings,

ArcGIS Runtime prints out a variety of messages on eclipse's Console window like below:
Java version : 1.7.0_17 (Oracle Corporation) amd64 Rendering engine : OpenGL Info: XInitThreads() called for concurrent Thread support Starting server OS Name: Linux /home/epguser/arcgis/runtime_sdk/java10.1.1/ArcGISRuntime10.1.1/LocalServerLx/bin/runtimeLauncher appPid=6690 onLinux AppStateDir=Z:/media/data/workspace/MapManager/res/map/installed /home/epguser/arcgis/runtime_sdk/java10.1.1/ArcGISRuntime10.1.1/LocalServerLx/bin 'apppid' = '6690' 'appstatedir' = 'Z:/media/data/workspace/MapManager/res/map/installed' 'cleanuponshutdown' = '' 'crashdump' = 'mini' 'datadir' = '/tmp' 'enablehtmlviews' = '' 'maxport' = '60000' 'minport' = '50000' 'onlinux' = '' 'urlprefix' = 'random' datadir does not exist, creating: "Z:\tmp\arcgisruntime_8" Message : DataDir : Z:\tmp\arcgisruntime_8 Message : Logging disabled Message : AppDataLocalDir : Z:\media\data\WO~0JJXE\MA~REKI5\res\map\IN~WD500\Local Message : AppDataRoamingDir : Z:\media\data\WO~0JJXE\MA~REKI5\res\map\IN~WD500\Roaming Message : AppDataCommonDir : Z:\media\data\WO~0JJXE\MA~REKI5\res\map\IN~WD500\Common Message : MyDocumentsDir : Z:\media\data\WO~0JJXE\MA~REKI5\res\map\IN~WD500\Documents Message : CrashDumpPath : Z:\tmp\ArcGISRuntimeErrorReports Message : Running using developer license Message : Licensing level : standard:standard:0 Message : Server version : 10.1.1.3265 Message : Server listening on : http://127.0.0.1:50000/5TpV7p/arcgis/rest May 03, 2013 8:16:05 AM org.apache.http.impl.client.DefaultRequestDirector execute INFO: I/O exception (org.apache.http.NoHttpResponseException) caught when processing request: The target server failed to respond May 03, 2013 8:16:05 AM org.apache.http.impl.client.DefaultRequestDirector execute INFO: Retrying request Stopping server Local server exited, code: 0

I was wondering if there was a way for me to capture these messages for the purpose of logging them using our application's logger.

Thanks in advanced.
0 Kudos
1 Solution

Accepted Solutions
EricBader
Regular Contributor II
Yes, you can capture this output in a log file. This text comes from the Local Server. To set this up, browse to the tools directory and run the Local Server Utility 10.1.1 script. Check the box that says "Enable Logging". Logs will be written by default to your $TEMP directory.

View solution in original post

0 Kudos
2 Replies
CarlosColón-Maldonado
Occasional Contributor III
Could I use a class registered with the LocalServer using the LocalServer.addServerMessageListener(ServerMessageListener) method? When the serverMessage event is fired, will I be able to get these strings from the ServerMessageEvent objets for logging?
0 Kudos
EricBader
Regular Contributor II
Yes, you can capture this output in a log file. This text comes from the Local Server. To set this up, browse to the tools directory and run the Local Server Utility 10.1.1 script. Check the box that says "Enable Logging". Logs will be written by default to your $TEMP directory.
0 Kudos