Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

log file name not change after rollover TimeBasedRollingFileAppender #588

Copy link
Copy link
Open
@wuxbs00

Description

@wuxbs00
Issue body actions

If this method is called from rollover, the filename is not empty, so it will remain unchanged.

void TimeBasedRollingFileAppender::open(std::ios_base::openmode mode)
{
  scheduledFilename = helpers::getFormattedTime(filenamePattern, helpers::now(), false);
  if (filename.empty())  // If this method is called from rollover, the filename is not empty, so it will remain unchanged.
    filename = scheduledFilename;
  
  tstring currentFilename = filename;
   ....
}

Metadata

Metadata

Assignees

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

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.