Skip to content
GitLab
Explore
Sign in
Admin message
A maintenance window for GitLab is scheduled on Wednesday, September 16th, from 08:00 to 13:00.
GitLab is undergoing scheduled maintenance. We will be back shortly.
You are on a read-only GitLab instance.
Changes
Page history
Update "Adjust Logging"
authored
Oct 05, 2023
by
Marcus Schilling
Show whitespace changes
Inline
Side-by-side
KnowledgeBase/CII.md
View page @
5b38dc44
...
@@ -2144,6 +2144,15 @@ int main(int ac, char *av[]) {
...
@@ -2144,6 +2144,15 @@ int main(int ac, char *av[]) {
}
}
```
```
Side-note: To configure the logging fully programmatically, without a file, you would do:
```
plaintext
::elt::log::CiiLogManager::Configure({
{"log4cplus.appender.ConsoleAppender", "log4cplus::ConsoleAppender"},
{"log4cplus.appender.ConsoleAppender.layout", "elt::log::layout::CiiSimpleLayout"},
{"log4cplus.rootLogger", "FATAL, ConsoleAppender"},
});
```
**List of Loggers**
Generally, to learn about all loggers that are active in your application, add this (temporarily) to your application:
**List of Loggers**
Generally, to learn about all loggers that are active in your application, add this (temporarily) to your application:
```
plaintext
```
plaintext
...
...