Thanks to visit codestin.com
Credit goes to github.com

Skip to content

access private URLs on LXRotatingFileEndpoint #11

@rabidaudio

Description

@rabidaudio

If there a reason properties like directoryURL and currentURL are private on LXRotatingFileEndpoint? It would be really useful to have read-only access to URLs for manipulating log files (e.g. uploading them to a server, deleting old logs, etc).

At the moment, I have to use

let directory = NSFileManager.defaultManager().URLsForDirectory(.ApplicationSupportDirectory, inDomains: .UserDomainMask).first!.URLByAppendingPathComponent(NSBundle.mainBundle().bundleIdentifier!, isDirectory: true).URLByAppendingPathComponent("logs", isDirectory: true)

which is terribly verbose and seems really fragile (if say LogKit changes the default file directory in a future version).

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