TcLog
TcLog copied to clipboard
Flexible logging functionality for TwinCAT 3.
Hi! this is not an issue, but only a discussion… At Zeugwerk we have a pretty similar logger and are currently implementing a fluent API for it (atm our API...
If the folder path doesn't exist it is not created, and the text file is not saved. Is this correct? Should it create the "C:/logs/" because it doesn't on my...
With last version "manual" installation (V0.5.0), the TC log lib have no category I dont know if this can be fixed, but a "log" categorie can be good  ...
I have my logger congiured as follows: ``` coreLogger.MinimumLevel(LogLevels.Debug) .SetDelimiter('|') .IncludeInstancePath() .WriteToAds() .WriteToFile('C:\PLC\Logs\', 'main_log.txt') .TimestampFormat('YYYY-MM-DD_') .SetRollingInterval(RollingIntervals.Daily).DeleteLogFilesAfterDays(30); ``` My Project name is HB1838_PLC_Project:  However when logging I get the following...
When declaring the instance of the core logger following the instructions, TcLogCore(BufferSize := 100 * (Tc2_System.MAX_STRING_LENGTH * Constants.FifoOverhead)); The Twincat compiler throws a C0196 warning about the implicit sign conversion...
Hello, method .includeInstancePath() the possibility to include the location where the message was triggered into the message text... no matter the value of _isDevelopment the output in ADS is the...
Hello It is possible to have the NLog format?? ${longdate}|${level}|${logger}|${message} ``` 2025-05-04 15:30:25.1234|INFO|MiAplicacion.Program|Inicio de la aplicación. 2025-05-04 15:30:26.5678|DEBUG|MiAplicacion.Program|Verificando configuración de usuario. 2025-05-04 15:30:27.9876|ERROR|MiAplicacion.BaseDeDatos|Error al conectar con la base de datos....
Could you provide some additional detail on the use of TcLog (a great library btw) in an environment where the TcLogCore.RunLogger() may be called from a different task than callers...
Love this library. A common feature in some logging-to-file libraries in other ecosystems is the ability to specify a parameter UDINT fileSizeLimitBytes which is considered as part of the file...