-
Notifications
You must be signed in to change notification settings - Fork 8
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
Update log file names to be prefixed with the namespace #798
Comments
I found in
then after manager, include configManager depends on logger, even before argv being parsed and set to flags. Maybe we could just even for other subdirectory so each name-space has its own dedicated directory for logs, caches |
I'm okay with using the as a directory for logs and everything. as you mentioned:
I think to get the namespace you will need to either manually parse the argv (could be |
When calling <cluster_namespace>/solo.log |
Jeromy Cannon solo/src/core/config/LocalConfig.ts Line 48 in e049a36
Also, see in my PR how I pull from argv early in main:#814 Jeffrey Tang Jeromy Cannon |
While doing some experiment, I found a tricky part.
|
How does this impact the logs referenced in this GH Issue? |
don't we want to put log/ and cache/ directories under the same namespace directory ?
files will be copied to default directory, instead of because any flags are instantiated before arguments are parsed. |
This is a good idea. I think that the keys and the profiles should stay with the namespace which ultimately is also the deployment with multi-cluster. Maybe we should open a separate PR though. I think that it requires a bit more design and restructuring to achieve this due to the problems you already mentioned. |
we could just dump the logs directory under the cache directory. since, cache directory already can be utilized by the user as an override for many subcommands. |
Currently, we have two log files on the users machine from which we run Solo:
~/.solo/logs/solo.log
~/.solo/logs/hashgraph-sdk.log
This will cause problems as we start to support using Solo for multiple deployments from the same machine.
I propose that we prefix the log file name with the namespace which matches the deployment. E.g.: namespace=
solo-e2e
~/.solo/logs/solo-e2e-solo.log
~/.solo/logs/solo-e2e-hashgraph-sdk.log
The text was updated successfully, but these errors were encountered: