2
0
mirror of https://github.com/meganz/MEGAcmd synced 2025-08-29 04:47:42 +00:00

4 Commits

Author SHA1 Message Date
Pablo Martin
7f7c5cd28a
have server logs configurable
Kept existing funcitonality:
- running the server _manually_ will log to stdout
- running the server as a forked process will log to
~/.megaCmd/megacmdserver.log in POSIX
- log parameters and environment variables will remain working as they
where. Except: Windows no also accepts MEGACMD_LOGLEVEL environment
variable
Changes:
- integration tests will log into $HOME/.megaCmd/megacmdserver.log.
- forked stoud/stderr are now logged to separated files
- refactored some of the from ::executeServer into server main
- removed static `LoggedStream LCOUT(&COUT)` Use Instance pattern
instead. Owned by the executeServer scope.
- adjusted broken identification of source for log lines. Needs
robustifying
- added new LoggedStreamXXX clases (for stdout, for default log file,
for null)
- fix executeInClient args array
2023-11-03 15:17:21 +01:00
Pablo Martin
2f574c1b6e
have megacmd::executeServer always return integer 2023-10-09 18:05:06 +02:00
Pablo Martin
d4c27c6c33
Create initial integration & unit tests structure
- only qmake
- define mockup tests
- include instruments (to be used/adjusted)
2023-10-09 17:58:30 +02:00
Pablo Martin
968979c6e1
separate main from megacmd.cpp and have a new includable MEGAcmdServer.pri
expose executeServer and stopServer exposed in megacmd.h
2023-10-09 17:21:06 +02:00