aboutsummaryrefslogtreecommitdiff
path: root/src/zenutil/include
Commit message (Collapse)AuthorAgeFilesLines
* eliminate redundant logging code (#499)Stefan Boberg2023-10-254-3/+617
| | | | | | | | | zenutil and zenserver both contain very similar logging setup code and this change aims to make them have most code in common. * fullformatter/jsonformatter/RotatingFileSink are moved into dedicated header files in zenutil * zenserver `InitializeLogging`/`ShutdownLogging` are renamed `InitializeServerLogging`/`InitializeServerLogging` * these now call into the common zenutil `BeginInitializeLogging`/`FinishInitializeLogging` in addition to setting up server custom logging * `std::filesystem::path` is now logged after stripping any `\\\\?\\` prefix for readability
* New rotating file logger that keeps on running regardless of errors (#495)Dan Engelbrecht2023-10-251-0/+2
| | | * New rotating file logger that keeps on running regardless of errors
* more cleanup from sb/protoStefan Boberg2023-10-202-16/+23
|
* Cache (rpc) activitity recording improvements (#482)Stefan Boberg2023-10-201-6/+17
| | | | | | | this adds a new RPC recording path aimed at more continuous recording and analysis of recorded sessions the new strategy is implemented alongside the original in order to retain the ability to read the older format the main difference between v2 and v1 is that the new strategy splits the recording into segments which are independent from each other. This is done to enable long running sessions with automatic disk cleanup (not implemented yet), appending to an existing recording (not implemented) and/or partial analysis and processing. The recorder will start a new segment when some criteria is fulfilled, including the number of files in the segment directory, disk footprint etc
* faster oplog iteration (#471)Dan Engelbrecht2023-10-131-1/+2
| | | | | * use a CbObjectView instead of CbObject to avoid creating IOBufferCore instances * use BasicFileBuffer directly where possible * changelog
* added logging utility functions (from sb/proto) (#469)Stefan Boberg2023-10-121-0/+33
| | | these allow standalone programs to share much of the logging setup from zenserver
* retry file create (#383)Dan Engelbrecht2023-09-041-0/+1
| | | | | * add retry logic when creating files * only write disk usage log if disk writes are allowed * changelog
* Fix construction order in OpenProcessCache (#374)Dan Engelbrecht2023-08-221-1/+1
|
* buffered file reading for oplog (#366)Dan Engelbrecht2023-08-211-0/+23
| | | | | * add BasicFileBuffer for buffered read of BasicFile * Use BasicFileBuffer when reading oplog * changelog
* Cache process handles for FormatPackageMessage (#360)Dan Engelbrecht2023-08-171-0/+39
|
* * added file sharing control to BasicFile (required to implement lockfiles)Stefan Boberg2023-06-301-6/+18
| | | | | * added delete-on-close support to BasicFile * added BasicFile::ReadRange()
* added ZenServerInstance::SpawnServerAndWait (#334)Stefan Boberg2023-06-161-2/+14
| | | | | this change adds `ZenServerInstance::SpawnServerAndWait()` which as the name implies spawns a server and then waits for the instance to reach a usable state before returning to the caller. It also changes the behaviour of `ZenServerInstance::AttachToRunningServer()` so it matches the Spawn behaviour wrt automatic termination on ZenServerInstance destruction. Previously it would always terminate the subprocess on exit.
* cache log sessionid (#297)Stefan Boberg2023-05-231-0/+28
| | | | | | | | | | | * implemented structured cache logging to be used as audit trail to help analyse potential cache pollution/corruption * added common header to all known log targets * made Oid::operator bool explicit to avoid logging/text format mishaps * HttpClient::operator bool -> explicit * changed cache logs to not rotate on start in order to retain more history * added CacheRequestContext * properly initialize request context * log session id and request id on zencacehstore get/put * changelog
* Added some comments to ZenServerInstance etcStefan Boberg2023-05-151-10/+18
|
* moved source directories into `/src` (#264)Stefan Boberg2023-05-027-0/+881
* moved source directories into `/src` * updated bundle.lua for new `src` path * moved some docs, icon * removed old test trees