Logging information is valuable when troubleshooting many types of issues, and it can sometimes help to temporarily change the logging settings for your service so that greater detail is available while analyzing current issues. This can be done on a per-service basis for most CygNet services, by editing several logging values to temporarily change the logging detail values for the log file for the service itself (NOT for the service's configured ELS). A good tool to use to achieve this is the Service Diagnostics utility.
CygNet provides a Service Diagnostic utility you can use to temporarily alter the logging levels for your service, rather than changing settings in the service configuration file where changes would persist and would need to be changed back again once you were done troubleshooting. The Service Diagnostics utility SvcDiags.exe is located in the CygNet\Utilities folder on your host server. See CygNet Service Diagnostics Utility for more information about the utility.
Using the utility, you can reset the values of the Service Log Settings to define the greater level of logging you want to use for troubleshooting your service issues. When you are done and close the utility, the edited settings will not persist. See Service Log Settings for more information.
Use the following standard command-line parameters to control log file creation.
|
/MAX_LOG_FILES:<maximum_number_of_log_files>
|
|
/MAX_LOG_LINES:<maximum_number_of_log_file_lines>
/MAX_LOG_SIZE:<maximum_size_of_log_file> |
The log file is written to the current working directory.
The following standard command-line logging level parameters can also be used to define log file content.
|
/LOG_ALL
/LOG_NONE
/LOG_CONTROL
/LOG_EXCEPTIONS
/LOG_WARNING
/LOG_PROG_STAT
/LOG_MIN_TRACE
/LOG_MAX_TRACE
/LOG_ENTER_EXIT
/LOG_STATISTICS
/LOG_PROFILE_MIN
/LOG_PROFILE_MAX |
Note: These options apply to most clients, services, and utilities. All options may not apply to all usages.
See Service Log Settings and Client Log Settings for more information about applicable logging options.