Skip to content

AnyFileReader::PrepareStep processName always overriden by filename as in BinaryFileReader #388

@plhak-marek

Description

@plhak-marek

I would like to see name of original process when I load logs from file.

To present filename as now, we could move it into message header.

The proposed change:

void AnyFileReader::PreProcess(Line& line) const
{
    line.processName = Str(m_filenameOnly).str();
}

->

void AnyFileReader::PreProcess(Line& line) const
{
   line.message = "[" + Str(m_filenameOnly).str() + "] ";
}

In my opinion, the filename addition in line.message can be omitted. I already know the exact file I have loaded and do not want to see it in the log.

->

void AnyFileReader::PreProcess(Line& line) const
{
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions