Skip to content

mnkd/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

About

A structured logger for Fluentd (Objective-C)

Resources

Stars

Watchers

Forks

Packages

No packages published