File format · .elf
EurekaLog Log Files — Structure, Corruption & Recovery
EurekaLog produces detailed exception-handling and crash-report logs for Delphi and C++ Builder apps. Learn how these files are structured, why they break,
EurekaLog is an exception-handling and crash-reporting toolkit for developers working in Embarcadero Delphi and C++Builder (and historically other VCL/FMX environments). When an application built with EurekaLog encounters an unhandled exception or otherwise crashes, the library can capture rich diagnostic information and write it to a log file. These log files are what end users, QA engineers, and support technicians send back to developers so that the root cause of a crash can be diagnosed. Because the logs contain call stacks, register dumps, module lists, and environment details, they are extremely valuable — and losing or truncating one can mean the difference between fixing a critical bug and never reproducing it.
What an EurekaLog Log File Is
An EurekaLog log file is a plain-text artifact generated at runtime by an application that has been instrumented with the EurekaLog library. The developer links EurekaLog into their project, configures options through the IDE-integrated wizard, and ships a binary that contains debug information in EurekaLog's own compressed JCL (JEDI Code Library) debug format. When the compiled application runs and hits an exception, EurekaLog intercepts it, gathers diagnostic context, and emits a log — either to disk, to email, to a bug-tracker via HTTP, or to the Windows Event Log, depending on how the developer configured it.
The on-disk .elf or .txt log is the most commonly encountered artifact. The .elf extension (EurekaLog File) is the default for file-based output, but developers frequently change the extension, prepend a timestamp, or redirect output into a custom path. Regardless of extension, the content is human-readable text organized into labeled sections.
Structure and Key Technical Facts
EurekaLog logs are structured plain text. A typical log opens with a header identifying the EurekaLog version and the application that produced it, followed by sections such as:
- Exception class and message — e.g.,
EAccessViolationwith the faulting address. - Call stack — the most important section, listing the sequence of function calls leading to the fault. Each frame typically shows the module name, address, unit name, procedure name, and source line number, because EurekaLog embeds its own compressed debug symbols at compile time.
- Registers — CPU register state at the time of the exception (EAX, EBX, ECX, EDX, ESI, EDI, EBP, ESP, EIP on x86; the equivalent extended registers on x64).
- Modules list — all DLLs, BPLs, and the main executable loaded into the process, with base addresses and sizes. This lets the developer map a raw address to the correct module even if ASLR changed load addresses.
- System and application information — Windows version, service pack, CPU count, memory, screen resolution, application name, version, and build timestamp.
- Active controls / threads — in VCL applications, EurekaLog can enumerate the form and control hierarchy and the running threads at the moment of the crash.
- Custom data — developers can append application-specific key/value pairs via EurekaLog's API, and these appear in a dedicated section.
Because the file is plain text (typically ANSI or UTF-8 depending on configuration), it can be opened in any editor. There is no binary container, no proprietary compression, and no encryption unless the developer explicitly enabled EurekaLog's log-encryption feature. When encryption is enabled, the file contains a Base64-encoded encrypted payload that only the developer's companion EurekaLog Tools can decrypt with the matching password.
Why EurekaLog Files Become Corrupt or Unreadable
Despite being simple text files, EurekaLog logs do become damaged in practice. The most common causes we see are:
- Incomplete writes during a hard crash. If the application faults during a stack overflow, an access violation inside the exception handler itself, or a kernel-level termination (e.g., a driver fault or power loss), EurekaLog may be killed mid-write. The result is a log that ends abruptly in the middle of a call-stack frame or a module entry.
- Disk-full or permission errors. The log is written to whatever path the developer chose. If that path is on a full disk, a read-only directory, or a network share that drops, the file may be created but only partially populated.
- Encoding mismatches. A log written as UTF-8 that is later re-saved by an email client or text editor as ANSI can corrupt non-ASCII characters in file paths, user names, and custom data fields.
- Truncation by email or bug-tracker gateways. Many crash reports travel through SMTP servers or web forms that impose size limits. A log that exceeds the limit may be silently cut.
- Accidental overwrites. EurekaLog can be configured to append to or overwrite a single log file. Misconfigured options can cause a second crash to overwrite the first report before it has been collected.
- Filesystem damage. Because logs often land in temp directories or user profiles that live on the same volume as the OS, ordinary filesystem corruption — bad sectors, NTFS/MFT damage, improper shutdowns — affects them just as it would any other file.
What Data Can Be Recovered
In nearly all cases, a damaged EurekaLog file still contains useful information. The text format is forgiving: even if the file is truncated, everything written before the interruption is intact and readable. We typically recover:
- The exception class, message, and faulting address.
- The partial or complete call stack — often enough to identify the faulting procedure and source line.
- The module list, which is usually written early and survives even when later sections are lost.
- System and application metadata, again because it tends to be written near the top.
- Custom application data, provided the write completed before the interruption.
When the file has been encrypted, recovery depends on having the password configured by the developer. Without it, the encrypted payload cannot be decoded, but the unencrypted header (if present) is still readable.
How Recovery Works
Recovering an EurekaLog file is primarily a matter of text-level repair. Our approach follows these steps:
- Make a byte-for-byte copy of the damaged file before doing anything else, so that any repair attempt works on a duplicate.
- Inspect the raw bytes in a hex editor to determine where the file actually ends. A truncated log will simply stop; there is usually no end-of-section marker to look for, so the goal is to confirm that no further data exists on disk beyond the last byte.
- Repair encoding issues. If the file was damaged by a code-page conversion, we identify the intended encoding (UTF-8 is the EurekaLog default for modern versions) and re-interpret or re-encode the bytes accordingly. Mojibake in file paths and procedure names is usually reversible at this stage.
- Reconstruct section boundaries. EurekaLog sections are delimited by blank lines and recognizable headers. We re-flow wrapped lines, remove stray control characters introduced by terminal or email transit, and re-establish clean section breaks so that the log can be parsed by EurekaLog's own viewer or by stack-trace analysis tools.
- Decrypt encrypted logs when the developer's password is available, using the EurekaLog decryption utilities.
- Cross-reference addresses against the developer's MAP files or the embedded JCL debug data to restore procedure and line information that may have been lost if the module list was truncated.
In cases where the log file itself is on a damaged filesystem — a corrupt NTFS volume, a failing SSD, a deleted temp directory — we first perform file-system-level or raw-carving recovery to extract the file, then apply the text-level repair described above.
FAQ
What extension do EurekaLog log files use?
The default is .elf (EurekaLog File), but developers can configure any extension and filename pattern. It is common to see .txt, .log, or timestamp-based names. The content is plain text regardless of extension.
Are EurekaLog logs binary or text?
They are plain text (ANSI or UTF-8). If the developer enabled log encryption, the file contains a Base64-encoded encrypted block that must be decrypted with EurekaLog's tools before it is readable.
Can a truncated EurekaLog log still be useful?
Yes. Because the format is sequential text, everything written before the interruption is intact. A partial call stack is often enough to identify the faulting unit and source line.
My EurekaLog file is full of garbled characters. Can it be fixed?
Usually, yes. Garbled text typically indicates an encoding mismatch — the log was written as UTF-8 but opened or re-saved as ANSI (or vice versa). Re-interpreting the bytes in the correct encoding resolves most cases.
How do I read procedure names instead of raw addresses?
EurekaLog embeds compressed debug information (JCL debug format) in the executable at build time. The log normally shows resolved procedure and line information automatically. If it does not, the developer needs the original MAP file or the compiled binary to resolve addresses manually.
Can you recover a deleted EurekaLog file?
Often, yes. EurekaLog frequently writes to temp directories or user profiles. If the file was deleted but the disk sectors have not been overwritten, raw-carving techniques can recover the text content.
If you have a damaged, truncated, or unreadable EurekaLog crash report — or a log file trapped on a failing disk — send it to us for a free evaluation. We will assess the file, tell you what is recoverable, and explain the repair path before any work begins.
Send us your .elf file for a free evaluation
Our recovery engineers will tell you exactly what can be recovered — at no cost. There is no charge if we cannot recover your data.
Start a free evaluation