You are not logged in.
Pages: 1
Hi Guys,
I'm new to mORMot2 (MORMot in general) .
i would like to use mOrMot2 within a linux daemon and i've very specific specifications:
-On the target system we don't have access to the filesystem(only readonly), so i don't wanna write a log file at all.
I already found the property NoFile within TSynLogFamily class - looks like this is exactly what i'm searching for.
- I still want to have Logout in the console, shouldn't be a problem at all: myLogFamily.EchoToConsole:= LOG_VERBOSE;
- i want to use the logging within a Linux daemon; i inherited from "TSynDaemon", now i'm struggling hard to find the right place where to define and configure my logging.
In most of the mormot2 demos/examples i found stuf like:
- TSynLog.Family
- TSynLog
Should my Application have own instances of TSynLogFamily and TSynLogFile ? If Yes, where is the best place to Create them ? AfterCreate of TSynDaemon ?
Or should i have a global unit with my instances ?
Or should i modify the Seetings to my needs over TSynLogFamily / TSynLog ?
Bonus question: Later on i would like not only log to the console output, i would like to write into the SystemLog. Is there a ready to go way ? Or do i have to work with EchoCustom ? Or is there an other way i missed out ?
Many thx in advance,
DC
Pages: 1