-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation on Hut logging #85
Comments
Not sure whether this is what you want: @Configuration("hunt")
class AppConfig {
struct LogConfig {
string level = "all";
string path;
string file = "";
bool disableConsole = true;
string maxSize = "8M";
uint maxNum = 8;
}
LogConfig log;
}
AppConfig validateLogConfiguration() {
ConfigBuilder manager = new ConfigBuilder(convertConfigPathToRelative("logging.conf"));
return manager.build!(AppConfig)();
}
void main() {
AppConfig config = validateLogConfiguration();
if (config.log.path.empty) {
warning("Log Path does not exist");
} else {
logInfo(config.log.path);
}
} |
As for how to set the name of the log file with a time field, the |
Hi Heromyth,
Code : settings.d
Code: connection.d
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi All,
Request your help on hunt logging. We have tested the example provided on how to validate the configuration, and now we request your help on how to implement the same, eg:
File: logging.conf
File: settings.d
Now we need your help on how to use the logging functionality using the configuration in logging.conf file.
The text was updated successfully, but these errors were encountered: