KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Change in Log Event command for macOS
PRODUCT: 4D | VERSION: 19 | PLATFORM: Mac
Published On: April 4, 2023

When using the command LOG EVENT to output logs from 4D into macOS Console, note that the location of the output has changed between v18 and v19. In v18, the logs output to “system.log” in Console. Apple now considers system.log to be “legacy” and it is reserved for system messages. Since v19 uses a different version of macOS SDK than v18, logs from LOG EVENT now appear in the messages stream for the particular machine. For example, if the following code is ran a few times:

LOG EVENT(Into 4D debug message; "TESTING LOG EVENT TO CONSOLE FROM 4Dv19.5")

The logs will appear in Console for the currently used device:



Note that the streaming of messages must be started before the code is executed.