Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

laiso/CocoaFluentLogger

Repository files navigation

CocoaFluentLogger

CocoaFluentLogger is currently only supported iOS.

//#import <CocoaFluentLogger/CocoaFluentLogger.h>
CocoaFluentLogger* logger = [[CocoaFluentLogger alloc] initWithHost:@"fluentd.example.com"
                                                               port:24224 tagPrefix:@"debug"];

[logger connect];

[logger post:@"test"
      object:@{@"text": [NSString stringWithFormat:@"Hello! I'm %@.", [UIDevice currentDevice].name]}];
      
// [logger disConnect];

Install

# Add Podfile
# pod 'CocoaFluentLogger', :git => 'https://github.com/laiso/CocoaFluentLogger.git'
    
pod install

Acknowledgements