Logging
Prerequisites
Enabling Logging and Verifying Its Status
void LicenseSpring::ExtendedOptions::enableLogging( bool enable ) bool LicenseSpring.ExtendedOptions.EnableLoggingpublic B requestLogging( feign.Logger.Level requestLogging )// Just set log handler:
LSLog.log = { level, message in
print("[\(level)] \(message())")
}import logging
# Configure logging
logging.basicConfig(
filename='app.log', # Name of the log file
filemode='a', # Append to the file ('w' for overwrite)
format='%(asctime)s - %(levelname)s - %(message)s', # Log format
level=logging.INFO # Log level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
)Location of the Log File
Default Location in Different Environments
Getting Current Data Location
Changing Data Location
Was this helpful?