# ck update signallogger

Updates an existing Signal Logger node in the current measurement setup.

## Synopsis

```text
ck update signallogger
    <LOGGER_NAME_OR_ID>
    [--url <String>]
    [--api-key <String>]
    [--language <en|zh|ja>]
    [-n|--name <NODE_NAME>]
    [--signals <SIGNAL_QUALIFIED_NAME>...]
    [-p|--path <LOG_FILE_PATH>]
    [-f|--format <LOG_FILE_FORMAT>]
    [--start-timeout <START_TIMEOUT_MS>]
    [--start-id <START_MESSAGE_ID>]
    [--start-source <START_MESSAGE_SOURCE>]
    [--stop-timeout <STOP_TIMEOUT_MS>]
    [--stop-id <STOP_MESSAGE_ID>]
    [--stop-source <STOP_MESSAGE_SOURCE>]
    [--auto-restart <True|False>]
    [--skip-file-header <True|False>]
    [--write-data-in-dec <True|False>]
    [--write-id-in-dec <True|False>]
    [--decimal-separator <DecDot|DecComma>]
    [--col-separator <Comma|Semicolon>]
    [--data-bytes-converter-limit <DATA_BYTES_CONVERTER_LIMIT>]
    [--size-limit <SIZE_LIMIT_MB>]
    [--time-limit <TIME_LIMIT_S>]
    [--data-decimals <NUMBER_OF_DATA_DECIMALS>]
    [--time-decimals <NUMBER_OF_TIME_DECIMALS>]
    [--use-calendar-time <True|False>]
    [--use-local-time <True|False>]
    [--time-reference <FirstTrigger|StartOfMeasurement>]
    [--use-enum-values <True|False>]
    [--write-fully-qualified-names <True|False>]
    [--write-counter <True|False>]
    [--write-units-on-own-row <True|False>]
    [--write-data-frames <True|False>]

ck update signallogger -h|--help
```

## Arguments

- ```LOGGER_NAME_OR_ID```  
The name or identifier of the Signal Logger node to update.

## Options

- ```--url```  
Specify the URL of the CanKingService if connecting to a remote host. Falls back to the CANKING_REMOTE_URL environment variable. If not specified, the command will connect to a local CanKingService instance.

- ```--api-key```  
API key required when connecting to a remote CanKingService instance. Falls back to the CANKING_REMOTE_API_KEY environment variable.

- ```--language```  
Specify the preferred language to be used in all output strings. Default value is English (en). Supported languages are English (en), Chinese (zh), and Japanese (ja).

- ```-n|--name```  
New name for the node.

- ```--signals```  
Replaces the selected signals. Qualified names of the signals to log.

- ```-p|--path```  
Name of the file to log signals to, including full path.

- ```-f|--format```  
Format of the file to log signals to.

- ```--start-timeout```  
A timeout in milliseconds, to be used as start trigger.

- ```--start-id```  
The Message ID to use as start trigger.

- ```--start-source```  
The Message Source to use as start trigger.

- ```--stop-timeout```  
A timeout in milliseconds, to be used as stop trigger.

- ```--stop-id```  
The Message ID to use as stop trigger.

- ```--stop-source```  
The Message Source to use as stop trigger.

- ```--auto-restart```  
Automatically restart after stop.

- ```--skip-file-header```  
Skip writing file header.

- ```--write-data-in-dec```  
Write data in decimal format.

- ```--write-id-in-dec```  
Write ID in decimal format.

- ```--decimal-separator```  
Use either a dot (DecDot) or comma (DecComma) as the decimal separator.

- ```--col-separator```  
Use either a comma or semicolon as the column separator.

- ```--data-bytes-converter-limit```  
Number of data bytes a converter will max write to the log file (1-64).

- ```--size-limit```  
Max file size in megabytes before writing to a new file.

- ```--time-limit```  
Max number of seconds between first and last event before writing to a new file.

- ```--data-decimals```  
Number of data decimals (0-9).

- ```--time-decimals```  
Number of time decimals (0-9).

- ```--use-calendar-time```  
Write timestamps in calendar time instead of seconds.

- ```--use-local-time```  
Use local time instead of UTC for absolute timestamps.

- ```--time-reference```  
Use either first trigger or start of measurement as time reference.

- ```--use-enum-values```  
Use strings from database instead of integer values.

- ```--write-fully-qualified-names```  
Write fully qualified names.

- ```--write-counter```  
Write counter.

- ```--write-units-on-own-row```  
Write units on an own row.

- ```--write-data-frames```  
Write both signals and data frames.

## Examples

```bash
ck update signallogger "Signal Logger" --signals dbcfile.engine.speed dbcfile.engine.gear
ck update signallogger "Signal Logger" --path path/to/newlogfile.csv --format csvsignal
ck update signallogger 58e31d82-c9e2-4557-a612-4408504bdd36 --name "Updated Signal Logger"
```

