You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would prefer default value for Logger.ThreadSafe property to be true, or even beter to delete it and use multi thread detection. Something like this that I have used in SafeLogger unit (#2):
procedure LogLock;
begin
if IsMultiThread then // no need for locking if the only thread in application is the main thread
Guardian.Enter;
end;
procedure LogUnlock;
begin
if IsMultiThread then // no need for locking if the only thread in application is the main thread
Guardian.Leave;
end;
If Logger.ThreadSafe is not set to true and multiple threads use FileChannel, then EInOutError exception will be raised and users might think that it's Multilog fault.
The text was updated successfully, but these errors were encountered:
I would prefer default value for Logger.ThreadSafe property to be true, or even beter to delete it and use multi thread detection. Something like this that I have used in SafeLogger unit (#2):
https://www.freepascal.org/docs-html/rtl/system/ismultithread.html
If Logger.ThreadSafe is not set to true and multiple threads use FileChannel, then EInOutError exception will be raised and users might think that it's Multilog fault.
The text was updated successfully, but these errors were encountered: