Deze pagina is nog niet beschikbaar in uw eigen taal. We werken er hard aan om meer taalversies toe te voegen. Bedankt voor uw steun.
- Function Overview
- What's New
- Service Overview
- Getting Started
-
User Guide
- Configuration Management
- HTTP Proxy
- Commonly Used Commands
-
Options
- Option Overview
- Printing Help Information
- Printing Debugging Information
- Checking Command
- Specifying Region
- Calling APIs with an Account in Non-configuration Mode
- Calling APIs with AK/SK in Non-configuration Mode
- Calling APIs with a Token in Non-configuration Mode
- Calling APIs Using an Agency in Non-configuration Mode
- Specifying Account ID
- Specifying Profile
- Specifying Authentication Mode
- Specifying Output Format
- Passing API Parameters with JSON File
- Specifying Request Timeouts
- Specifying Retry Count
- Skipping HTTPS Request Certificate Verification
- Specifying a Domain Name
- Obtaining CLI Examples on API Explorer
- Using KooCLI in Non-configuration Mode
- Obtaining Authentication Information
-
FAQs
- Overview
- Authentication
- Profiles
- Metadata Cache
- Logs
- Network Connections
- Cloud Services
- Cloud Service APIs
- Regions
-
Parameters
- What Are KooCLI System Parameters?
- Why Am I Seeing a Message Indicating an Invalid Parameter?
- Why Are Old and New KooCLI System Parameters (Such as region and cli-region) Available? Which Parameters Are Recommended?
- Why Am I Seeing a Message Indicating a Duplicate Parameter?
- How Do I Use cli-jsonInput?
- When Can I Use cli-jsonInput?
- Why Am I Seeing a Message Indicating an Unsupported Parameter Position or Type?
- How Do I Leave a Body Parameter Empty for Cloud Service APIs?
- Interactive Mode and Autocomplete
-
Output Formats
- What Output Formats Are Supported by KooCLI?
- How Do I Define a JMESPath Expression?
- Which KooCLI System Parameters Are Related to Data Output? Which Ones Are Recommended?
- How Do I Use cli-output, cli-query, and cli-output-num?
- How Do I Use cli-output-rows, cli-output-cols, and cli-output-num? What Are the Precautions?
- How Do I Use cli-json-filter? What Are the Precautions?
- Other
- Videos
Show all
Managing Logs
KooCLI provides log recording and management to cache the logs generated during API calling. Log files are stored in the following directories:
- Windows: C:\Users\{Your Windows username}\.hcloud\log\
- Linux: /home/{Current username}/.hcloud/log/
- macOS: /Users/{Current username}/.hcloud/log/
Parameters related to log management:
- level: log level, which can be info, warning, or error.
- max-file-size: maximum size (MB) of a single log file. Range: 1 to 100. Default value: 20.
- max-file-num: the number of retained log files. The value 0 indicates that all log files are retained.
- retention-period: the number of days for retaining log files. The value 0 indicates that log files are retained permanently.
If none of the parameters are specified, the default log level is error, the maximum size of a single log file is 20 MB, and the log retention period is 90 days.
Run the following command to set log-related parameters:
hcloud log set --key1=value1 --key2=value2 ...
hcloud log set --level=error --max-file-size=20 --max-file-num=3 --retention-period=30 Configuration successful.
Run the following command to view log-related parameters:
hcloud log show
hcloud log show { "maxFileSize": 20, "maxFileNum": 3, "logLevel": "error", "logRetentionPeriod": 30 }
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.