Latest 2.0
Homepage https://github.com/leszek-s/LSLogViewer
License MIT
Platforms ios 7.0, requires ARC

LSLogViewer is a simple in-app log viewer. It allows saving logs to files and reading them inside your application.

Note

In version 1.x the purpose of this library was to read logs saved by NSLog on the device however as this is not longer possible on recent iOS version now this library saves logs to own files in Documents directory and read those files.

LSLogViewer

Usage

To log something use LSLog instead of NSLog like below. This will save your logs to files in documents directory of the application.

LSLog(@"Hello!");

To present the LSLogViewer screen that allows reading logs simply call it anywhere from your code like below.

[LSLogViewer showViewer];

With a single line of code you can also register a three-finger triple-tap gesture which will open LSLogViewer without any additional code.

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // ...
    [LSLogViewer registerThreeFingerTripleTapGesture];
    return YES;
}

License

LSLogViewer is available under the MIT license. See LICENSE.

Latest podspec

{
    "name": "LSLogViewer",
    "version": "2.0",
    "summary": "This is a simple in-app log viewer. It allows saving logs to files and reading them inside your application.",
    "homepage": "https://github.com/leszek-s/LSLogViewer",
    "license": "MIT",
    "authors": "Leszek S",
    "source": {
        "git": "https://github.com/leszek-s/LSLogViewer.git",
        "tag": "2.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source_files": "LSLogViewer",
    "resources": "LSLogViewer/LSLogViewer.xib",
    "requires_arc": true
}

Pin It on Pinterest

Share This