All Projects → bosphere → Android Filelogger

bosphere / Android Filelogger

A general-purpose logging library with built-in support to save logs to file efficiently.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Android Filelogger

Loglevelnext
A modern logging library for Node.js that provides log level mapping to the console
Stars: ✭ 33 (-52.86%)
Mutual labels:  logging, log, logger
Plog
Portable, simple and extensible C++ logging library
Stars: ✭ 1,061 (+1415.71%)
Mutual labels:  logging, log, logger
Acho
The Hackable Log
Stars: ✭ 189 (+170%)
Mutual labels:  logging, log, logger
Easylogger
An ultra-lightweight(ROM<1.6K, RAM<0.3k), high-performance C/C++ log library. | 一款超轻量级(ROM<1.6K, RAM<0.3k)、高性能的 C/C++ 日志库
Stars: ✭ 1,968 (+2711.43%)
Mutual labels:  logging, log, logger
gxlog
A concise, functional, flexible and extensible logger for go.
Stars: ✭ 65 (-7.14%)
Mutual labels:  log, logger, logging
Quicklogger
Library for logging on files, console, memory, email, rest, eventlog, syslog, slack, telegram, redis, logstash, elasticsearch, influxdb, graylog, Sentry, Twilio, ide debug messages and throw events for Delphi/Firemonkey/freepascal/.NET (Windows/Linux/OSX/IOS/Android).
Stars: ✭ 137 (+95.71%)
Mutual labels:  logging, log, logger
Serverless Es Logs
A Serverless plugin to transport logs to ElasticSearch
Stars: ✭ 51 (-27.14%)
Mutual labels:  logging, log, logger
Loguru
Python logging made (stupidly) simple
Stars: ✭ 10,510 (+14914.29%)
Mutual labels:  logging, log, logger
sprout
Golang logging library supporting log retrieval.
Stars: ✭ 85 (+21.43%)
Mutual labels:  log, logger, file
Golog
A high-performant Logging Foundation for Go Applications. X3 faster than the rest leveled loggers.
Stars: ✭ 208 (+197.14%)
Mutual labels:  logging, log, logger
Serverlog
A simple, practical and innovative Node.js log library that enables you to view logs in Chrome dev tools and browser Console.
Stars: ✭ 117 (+67.14%)
Mutual labels:  logging, log, logger
Gollum
An n:m message multiplexer written in Go
Stars: ✭ 883 (+1161.43%)
Mutual labels:  logging, log, logger
Node Lambda Log
Basic logging mechanism for Node 6.10+ Lambda Functions
Stars: ✭ 115 (+64.29%)
Mutual labels:  logging, log, logger
Heliumlogger
A lightweight logging framework for Swift
Stars: ✭ 169 (+141.43%)
Mutual labels:  logging, log, logger
React Native Logs
Performance-aware simple logger for React-Native with namespaces, custom levels and custom transports (colored console, file writing, etc.)
Stars: ✭ 84 (+20%)
Mutual labels:  logging, logger, file
Logcat
Android 日志打印框架,在手机上可以直接看到 Logcat 日志啦
Stars: ✭ 189 (+170%)
Mutual labels:  logging, log, logger
Go Logger
一个简单而强大的 golang 日志工具包,支持同步和异步输出到 命令行,文件, api 接口,文件支持按文件大小,文件行数,日期切分;A simple and powerful golang logging toolkit that supports synchronous and asynchronous output to the console, file, API interfaces, file support by file size, file line number, date sharding.
Stars: ✭ 152 (+117.14%)
Mutual labels:  log, logger, file
Xlog
Android logger, pretty, powerful and flexible, log to everywhere, save to file, all you want is here.
Stars: ✭ 2,468 (+3425.71%)
Mutual labels:  log, logger, file
Monolog Bundle
Symfony Monolog Bundle
Stars: ✭ 2,532 (+3517.14%)
Mutual labels:  logging, log, logger
Cocoadebug
iOS Debugging Tool 🚀
Stars: ✭ 3,769 (+5284.29%)
Mutual labels:  logging, log, logger

Android-FileLogger

A general-purpose logging library with built-in support to save logs to file.

For performance concern, I/O operation is buffered and executed in background thread.

Usage

dependencies {
    compile 'com.github.bosphere.android-filelogger:filelogger:1.0.7'
}

Please refer to the sample app for more details.

FL.init(new FLConfig.Builder(this)
        .logger(...)       // customise how to hook up with logcat
        .defaultTag("Default Tag")   // customise default tag
        .minLevel(FLConst.Level.V)   // customise minimum logging level
        .logToFile(true)   // enable logging to file
        .dir(directory)    // customise directory to hold log files
        .formatter(...)    // customise log format and file name
        .retentionPolicy(FLConst.RetentionPolicy.FILE_COUNT) // customise retention strategy
        .maxFileCount(FLConst.DEFAULT_MAX_FILE_COUNT)    // customise how many log files to keep if retention by file count
        .maxTotalSize(FLConst.DEFAULT_MAX_TOTAL_SIZE)    // customise how much space log files can occupy if retention by total size
        .build());
        
        
// overall toggle to enable/disable logging
FL.setEnabled(true);

// to log with default tag
FL.d("this is a debug message");

// to log with placeholder and interpolation
FL.d("this is a %s message", "debug");

// to log with specified tag
FL.d("Tag", "this is a %s message", "debug");

// to log exception
FL.e("Tag", throwable);
FL.e("Tag", throwable, "extra %s info", "debug");

Compatibility

API 9 (Android 2.3) and up

License

Copyright 2018 Yang Bo

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].