Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Save all configuration in a file #603

@mickagau

Description

@mickagau

Hello

I would like to be able to modify the log level of loggers through a GUI. Sometimes users go in the log4cplus.properties file, modify the log level and either do a type mismatch.

Basically, user select a log level for logger X, user select a log level for logger Y
I know already how to set this programmatically but i do not seee any way to save back this madification in the properties file.

Is there something which exist?
If not is it something that could be implemented ? If can not implement what would you suggest to do so please?

ConfigureAndWatchThread configureThread(LOG4CPLUS_TEXT(".\log4cplus.properties"), 500 * 1000);
Then i can modify properties but i can't save it
Something like
configureThread.SaveInFile(LOG4CPLUS_TEXT(".\log4cplus.properties"));

Thank you.
Mickael

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions