billywalton Posted January 30, 2018 Share Posted January 30, 2018 Hi, I have installed UniGUI 1.0.0.1412.and I would like to change the path where the logs are written to by default. I have changed changing 'ServerRoot' property of the server module and this makes all the other folders (cache, ext, uni etc) to be redirected to the folder specified, but the logs folder is always created within the'\logs' in the applications folder. Is it possible to redirect the logs to a different folder? Thanks Bill. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 30, 2018 Share Posted January 30, 2018 Hi, You can change it in BeforeInit event. procedure TUniServerModule.UniGUIServerModuleBeforeInit(Sender: TObject); begin Logger.Path := 'NewPath'; end; Quote Link to comment Share on other sites More sharing options...
billywalton Posted January 30, 2018 Author Share Posted January 30, 2018 Hi, Thanks for that. It helped a little bit in that eventually I do get a 'log' folder underneath the path specified by 'ServerRoot'. I set it as follows: procedure TUniServerModule.UniGUIServerModuleBeforeInit(Sender: TObject);begin ServerRoot:='UniGUI'; Logger.Path:=ServerRoot+'\log';//So logs go in the same place as everything else ExtRoot:='ext\'; UniRoot:='uni\'; end; So now I get a 'log' folder in the application's 'UniGUI' subfolder (i.e. <app folder>\UniGui\log'), plus I still get a 'log' folder in the main application folder (i.e. <app folder>\log') as well. Is there anything else I could try? I would like all logs to go into the i.e. '<app folder>\UniGui\log' folder. Thanks Bill Quote Link to comment Share on other sites More sharing options...
Pascal Posted February 5, 2018 Share Posted February 5, 2018 @Billy I have the same issue. Reported it here: http://forums.unigui.com/index.php?/topic/9716-loggerrootpath/ Didn't get any feedback, strange. Seems like a bug to me. Regards, Pascal Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 5, 2018 Share Posted February 5, 2018 Hi, Which edition and build are you using??! Best regards, Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.