B4J Question [Solved] jRDC Logfile

madru

Active Member
Licensed User
Longtime User
Hi guys,

maybe I missed it but can we set the Logfile prefix (not b4J) or the whole filename ?

THX
 

madru

Active Member
Licensed User
Longtime User
THX, will try it

......searched for 'jetty log file rename' and it didn't show up
 
Upvote 0

madru

Active Member
Licensed User
Longtime User
mmh, with your suggested solution I get 2 log files now the original one starting with b4j.... and the one I defined in NCSARequestLog.InitializeNewInstance()
 
Upvote 0

madru

Active Member
Licensed User
Longtime User
yes, but is this the correct solution ?

the 'b4j......' file will be created with each access to the server, so I have to constantly delete that file.

Is there no other way?


OK, was properly dreaming. The original one is only created after startup ...........

B4X:
    Dim LogsFolder As String = srvr.LogsFileFolder
    Log("Logfile folder created: "& LogsFolder)
    Dim filelist As List
    filelist.Initialize
    filelist.AddAll(File.ListFiles(LogsFolder))
    
    For Each f As String In filelist
        If f.StartsWith("b4j") Then
            File.Delete(LogsFolder,f)
        End If
    Next
 
Last edited:
Upvote 0
Top