Jump to content

Change logs path


billywalton

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...