ArcGIS API for JavaScript: logging/Logging (MapServer)

Built using the ArcGIS API for JavaScript