Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Contact Us
  • Home
  • API, CLI, and SDK Documentation
  • Command-line Interface

CLI: Logging

Learn how to use the CLI to set the logging level for the application logs.

Written by Andrea Harvey

Updated at April 28th, 2025

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Insights
    Prebuilt Insights Custom Insights
  • Content
  • Accounts
  • Activity Log
  • Content Scans
  • Migrations
    Migration Jobs Migration Reports Maps Flagged Items Migration Tools
  • Connections
    Supported Platform Connections Creating Connections Connection Maintenance Connection Pools
  • Entity Types
    DryvIQ Available Entity Types Custom Entity Types Entity Type Maintenance
  • Action Sets
    Creating Action Sets Action Sets Maintenance
  • Settings
    License Performance Notifications Extensions Entity Types Settings Display Settings Configuration
  • API, CLI, and SDK Documentation
    REST API Documentation Command-line Interface SDK Development
  • POC Offering
  • Release Notes
+ More

Table of Contents

Overview Parameters Log Level List Logging Levels Command Example Result Updating Logging Information Updating the Logging Level Command Examples Updating Retention Days Command Examples Updating Both Parameters Command Examples

The CLI references “skysync.” This is expected.

 

Overview

The logging level determines the amount of information that is captured and included in the application logs. You would change the logging level if you want to capture specific information only to troubleshoot issues.

Parameters

Parameter Description
level The logging level set. The default value is Info.
retention_days Number of days the log will be retained. The default value is 21 days.

Log Level

Below are the available log levels that can be set for the application log. Info is the default logging level.

Level Description
Trace This level includes all logging levels. This is an ideal logging level to set when troubleshooting as it provides the most comprehensive logging.
Debug This level logs all basic information, warnings, and errors. It also includes additional information that may be useful for troubleshooting.
Info This level logs all basic logging, warnings, and errors. This is the default logging level.
Warn This level logs only warnings and errors.
Error This level logs only general and critical errors.
Fatal This level logs only critical errors.

List Logging Levels

Command

skysync.js diagnostics logging show

Example Result

{
  "level": "trace",
  "Retention_days": 21
}

Updating Logging Information

You can update just the logging level or retention days, or you can update both. At least one parameter must be set in the update command in order for the update to work. An update command without parameters will result in a return message that includes help information for how to update the logging information.

Updating the Logging Level

Command

skysync.js diagnostics logging update --level={level}

Examples

skysync.js diagnostics logging update --level=trace
skysync.js diagnostics logging update --level=debug
skysync.js diagnostics logging update --level=info
skysync.js diagnostics logging update --level=warn
skysync.js diagnostics logging update --level=error
skysync.js diagnostics logging update --level=fatal

Updating Retention Days

The Retention Days setting determines how long logs are retained. 

Command

skysync.js diagnostics logging update --retention={days}

Examples

skysync.js diagnostics logging update --retention=15
skysync.js diagnostics logging update --retention=30

Updating Both Parameters

Command

skysync.js diagnostics logging update --level={level} --retention={days}

or

skysync.js diagnostics logging update -l={level}-r={days}

Examples

skysync.js diagnostics logging update --level=trace --retention=20
skysync.js diagnostics logging update --level=warn --retention=15
skysync.js diagnostics logging update -l=trace-r=20
skysync.js diagnostics logging update -l=warn-r=15

When logging is set through the CLI, the changes will be reflected on the Performance page in the Settings once the page is refreshed.

 

 

tracking cli logging command-line log level

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • DryvIQ CLI for Migrations
  • CLI: Authentication

Copyright 2025 – DryvIQ, Inc.

Knowledge Base Software powered by Helpjuice

Expand