# Mender option --log-file is not working

**URL:** <https://hub.mender.io/t/mender-option-log-file-is-not-working/2191>\
**Category:** General Discussions\
**Tags:** mender-client\
**Created:** [July 13, 2020, 1:31pm UTC](https://hub.mender.io/t/mender-option-log-file-is-not-working/2191 "2020-07-13T13:31:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ichergui](https://avatars.discourse-cdn.com/v4/letter/i/e19b73/32.png) [@ichergui](https://hub.mender.io/u/ichergui)\
**Post date:** [July 13, 2020, 1:31pm UTC](https://hub.mender.io/t/mender-option-log-file-is-not-working/2191/1 "2020-07-13T13:31:24Z")

</div>

Hi everyone,

I’m using mender client version **eef7471** to perform system updates on Nvidia Jetson TX2.

I tried to use the option **–log-file** but is not working for me. I mean the log file was not created.

Here is the version of mender client I used.

```auto
root@jetson-tx2:~# mender --help
NAME:
mender - manage and start the Mender client.

USAGE:
[global options] command [command options] [arguments...]

VERSION:
eef7471 runtime: go1.12.9

```

Here the command line I used.

```auto
root@jetson-tx2:~# mender install /mnt/ssd/core-image-base-jetson-tx2-20200713105842.mender --log-level debug --log-file /tmp/my_mender_install.log                                          
INFO[0000] Loaded configuration file: /var/lib/mender/mender.conf module=config                                                                                                         
INFO[0000] Loaded configuration file: /etc/mender/mender.conf module=config                                                                                                             
INFO[0000] Mender running on partition: /dev/mmcblk0p1 module=cli                                                                                                                      
INFO[0000] Start updating from local image file: [/mnt/ssd/core-image-base-jetson-tx2-20200713105842.mender] module=standalone                                                          
Installing Artifact of size 115989504... 

```

Could you please confirm that ?

Best regards,  
Ilies

---

<div class="post-metadata">

**Author:** ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)\
**Post date:** [July 15, 2020, 6:15am UTC](https://hub.mender.io/t/mender-option-log-file-is-not-working/2191/2 "2020-07-15T06:15:00Z")

</div>

The `--log-file` argument needs to come before `install`.

---

<div class="post-metadata">

**Author:** ![ichergui](https://avatars.discourse-cdn.com/v4/letter/i/e19b73/32.png) [@ichergui](https://hub.mender.io/u/ichergui)\
**Post date:** [July 15, 2020, 8:50am UTC](https://hub.mender.io/t/mender-option-log-file-is-not-working/2191/3 "2020-07-15T08:50:13Z")

</div>

Thanks @kacf
