- A software developer who loves to create things
- ๐ Personal blog
nakkht / logr Goto Github PK
View Code? Open in Web Editor NEWDead simple logging library for iOS
Home Page: https://nakkht.github.io/logr/
License: Apache License 2.0
Dead simple logging library for iOS
Home Page: https://nakkht.github.io/logr/
License: Apache License 2.0
Ensure text is encoded using utf8
Motivation: To enable easier extensibility, aggregates LogLevel, message and meta info into message struct.
FileTarget for writing logs to a file.
Some of the configurations to consider:
Motivation: default initializer for struct is internal, which means it is inaccessible from outside library.
Initializer has to be reverted back to public.
Include code coverage information.
FileTarget has a dispatch queue which is not configurable.
FileTargetConfig should allow setting dispatch queue explicitly. If not provided, it should default to the one provided by the library.
Reduce log information for the console to bare minimum:
{timestamp} {level} {message}
Motivation: In conjunction to CocoaPods and SPM, Carthage support should be added if plausible.
Architectural document for overview of the design principles.
maxArchivedFilesCount property in FileTargetConfig is not configurable.
Available logging style options for targets:
Classes missing documentation:
Demo samples showing logging to a file.
Force archive action should give opportunity for the client to archive current log file regardless of the specified conditions in the configuration file.
Further documentation on how to use the library:
Introduce log levels, including configuration options:
Unit tests for:
ConsoleTarget class
Logr class
LogrService class
Config class
Functions deleteOldFiles
and renameArchivedFiles
in FileTarget
uses wrong directories for manipulating archived logs.
Once there are some tests, integrate Travis CI for continuous builds.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.