[ROOT] / doc / toc / ARCCore / Enum / PSPrefix / app


Application state, like app/

Application state means the actual internal state of application, and also logging.
See ExposingApplicationState.

These data points are normally not read from disk at application initialization.
They can however normally be accessed from the in-memory data storage as the application progresses.

Note that logging is kind of inbuilt in AgoRapide.
The PropertyStream / (RegStream if you use ARCEvent) 'is' the log and if you need to insert additional log
information they are just new properties to be added to the stream.

A logging console is likewise just a Client which subscribes to the whole or part of the PropertyStream (for instance like Subscripton = 'as/*').
NOTE: You could have as many log-consoles as you prefer (each with different subscriptions), in order to follow specific parts of the system.

In addition to the inbuilt log-characteristics of the PropertyStream you can insert additional application state data points through two main methods:

Method A) Call to Log (this can also be instructed to log to the local console). Note overloads to this methods encouraging you to supply a set of data-points (set of (key, values) tuples), instead of just some loose text.
TODO. GIVE EXAMPLE OF THIS.

Method B) Use a class like PConcurrent with concept of Logger, this will log any changes to the class (especially useful for exposing ExposingApplicationState).

See also Log, HandleException, ExposingApplicationState.


Details

Generated 2024-11-14 04:10:39.642 UTC