... | ... | @@ -96,9 +96,13 @@ The Cameo server application is logging in the *cameo.log* file and it is also p |
|
|
Indeed when you need to debug an application, the standard error and output may be useful.
|
|
|
Cameo applications are started in background and it is possible to log the standard error and output. For that, you need to define the *log_directory* attribute of the application tag with a path that exists or the *default* value which is the location of the *cameo.log* file. Each running Cameo application has a unique id provided by the server and the produced log file is *<name>.<id>.log* for an app with the name *name* and id *id*. For instance it could be *App2.12.log*.
|
|
|
|
|
|
# Start the server
|
|
|
|
|
|
Once the configuration file and its associated environment files have been defined, the Cameo server can be started.
|
|
|
|
|
|
# Standard error and output
|
|
|
|
|
|
The standard error and output can also be printed by the console application or retrieved by the API. For that the attribute *stream* must have be set to *yes*. An example with the C++ API:
|
|
|
The standard error and output can also be printed by the console application or retrieved by the API. For that the attribute *stream* of the application tag must have be set to *yes*. An example with the C++ API:
|
|
|
```cpp
|
|
|
// Start the app with the OUTPUTSTREAM option.
|
|
|
std::unique_ptr<cameo::application::Instance> app = server.start("App2", cameo::OUTPUTSTREAM);
|
... | ... | |