Skip to content

A few proposals #291

@sashazxtt

Description

@sashazxtt
  1. Parameterize the RollingFileAppender
    It would be great if the RollingFileAppender could be parameterized on the File. Would be easy to plug in a custom file writer without changing the file management logic.
  2. Add ability to include a name of the 'facility' (Record::instanceId) to a log line. Would rely on an external functions to map an id to a string. Could be a template parameter to the formatters.
  3. Make logging of the 'this' and function optional. For now I did this:
    #if defined LOG_THIS_AND_FUNC
    ss << record.getObject() << PLOG_NSTR(";");
    ss << record.getFunc() << PLOG_NSTR("@") << record.getLine() << PLOG_NSTR(";");
    #endif

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions