Back to main menu

## Program behaviour: log file

#### Syntax

`-log <logfile>`

#### Description

This option allows you to change the file in which the program writes its journal of events, or so-called log file. By default the logfile is `atomsk.log`.

Note that if you use another log file name, then the level of verbosity will be automatically set to 3, unless you specify a verbosity level different from 0 and 1.

To make this change permanent, you may set up a configuration file.

#### Default

By default the logfile is `atomsk.log`.

#### Examples

- `atomsk initial.gin cfg -log myrun.log`

  This will write the progress of the program both on screen and in the file `myrun.log`.

- `atomsk initial.gin cfg -log myrun.log -v 0`

  Same as before. Because you specified an alternate logfile, the level of verbosity cannot be 0 -it is reset to 3.

- `atomsk initial.gin cfg -log myrun.log -v 2`

  This will write the progress of the program only in the file `myrun.log` (nothing will be displayed on screen except error messages).

Back to main menu