Service Virtualization

 View Only

Service Virtualization - Best Practices - Log Viewer As a Virtual Service 

Jul 11, 2024 04:58 AM

There has been a constant need for developers and creators of Virtual Services to get the log files from the VSE server like vse.log, VS Specific log and Match log files to diagnose any anomalies at the time of development and deployment. Due to access control restrictions, developers often have to wait for Administrators to share the log files and this arrangement sometimes doesn't help due to practical reasons.

LogViewer As a Virtual Service is a simple yet effective solution to tackle this problem. Implemented as a HTTP Virtual Service, it provides an interactive HTML interface for Developers and Creators of Virtual Services with the ability to view the latest log file of their choice directly from the Web Browser. 

The salient features of this Virtual Service are:

  1. Landing page - Guides users on how to make use of the Virtual Service
  2. List Page - Provides the complete list of Log Files from VSE Server's lisatmp folder; accessible as Hyper Links for instant viewing
  3. Contents Page - Loads the contents of a log file of your choice in the browser window. This page may directly be accessed or accessed from the List Page

LANDING PAGE

URL: http(s)://VSEHOST:VSPORT/getlog/

LIST PAGE

URL: http(s)://VSEHOST:VSPORT/getlog/files

CONTENTS PAGE

URL: http(s)://VSEHOST:VSPORT/getlog/vse.log

Further Improvements

The consumers of this Virtual Service can further build on by extending the functionality. Some relevant ideas that would help developers immensely:

  1. Show last N lines from the log file. This will be very useful as developers deploy the VS and want to check the last few tens or hundreds of lines and not the entire log file in one shot
  2. Show last N Seconds Log statements. This is another dimension to the earlier possibility where by the log statements from last few seconds could be shown instead of the entire contents in one go
  3. Show Log of Certain Level . At times the developer may just be keen in seeing any ERRORS or WARNINGS in the log file
  4. File Download - Allow the user to download a copy of the file for local analysis

Statistics
0 Favorited
24 Views
1 Files
0 Shares
1 Downloads
Attachment(s)
zip file
LogViewer.mar.zip   84 KB   1 version
Uploaded - Jul 11, 2024