Logging
This page explains how to use the logging capabilities of the SDK.
The Go SDK provides a simple logger.
If you want a custom logging implementation, you can create your own implementation of the pkg.logger.Logger
interface.
Sample logger
client, err = NewClient(
& config,
& httpClient,
& pkg.InternalLogger {
LOG_LEVEL: pkg.DEBUG
},
)
The Python SDK uses the standard Python logging
module.
Sample logger
log_config = {
'log_file_name': 'sectigo_pycert.log',
'log_level': 'info',
'log_folder_path': '<path/log_dir>',
'log_size_mb': 1,
'log_file_count': 10,
}
logger = Logger(log_config)