Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/partysun/hxlogs
https://github.com/partysun/hxlogs
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/partysun/hxlogs
- Owner: Partysun
- Created: 2014-11-30T10:36:09.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-30T11:00:00.000Z (almost 10 years ago)
- Last Synced: 2024-05-03T07:51:40.961Z (7 months ago)
- Language: Haxe
- Size: 238 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Log (Haxe Library)
=====================This *extremely* simple library provides simple and beatifull logging system in Haxe.
Install
-------![screenshot](screenshot.png)
`haxelib git log [email protected]:Partysun/hxlogs.git`
And then in your project's hxml build file, add
`-lib log`
Usage
-----```
import Log;class Main {
public static function main() {
Log.init();
var x = 0;
Log.log("This is simple log message!");
Log.info("This is info message!");
Log.debug("This is debug message!");
Log.debug('x is $x');
Log.error("This is error message!");
Log.assert(x == 1, "x should be 1 damnit!");
Log.assert(x == 0, "x should be 1 damnit!");
Log.ok('Life is good!');
}}
```This gist ( https://gist.github.com/martinwells/5980517 ) gives impulse.