Changelog
v2.3.1
- Separate download methods and implement with applyMixins
- Added more test
v2.3.0
- Create doc page http://lmfresneda.github.io/loggerage/
- Improvement doc
v2.2.1
- Bug fixed. Query with one DEBUG level not filtered. (issue #9)
v2.2.0
- Added get log by query system (issue #2)
- Added
version_number
to log object
v2.1.1
- Correction doc in async error methods
v2.1.0
- Cache loggers (issue #1)
v2.0.0
- Old constructor is removed, only accept
constructor(app, options)
- Separate classes in files
- Separate types in files and other folder
- Improvement storage interface
- Improvement control types
- Wrapped with 'Promise.resolve' calls in async methods
- Not compatible with previous versions
v1.3.0
- Insert app name and version properties in each log
- Accepted version as number or string
- Accepted object at second parameter in constructor, instead defaultLogLevel and version. Although the old form is still accepted for retrocompatibility.
Second parameter = {
isLocalStorage: boolean; // default true
silence: boolean = false; // default false
version: number|string; // default 1
defaultLogLevel: LoggerageLevel; // default LoggerageLevel.DEBUG;
storage: any; // default null
}
Example:
const logger = new Loggerage('MY-APP', {
isLocalStorage: false,
silence: true,
version: '1.1'
defaultLogLevel: LoggerageLevel.INFO,
storage: myOwnStorage
});
All properties are optionals and the object itself is optional. The default options will be collected.
v1.2.0
- Implement async methods
v1.1.1
- fixed if not exist window or default localStorage in construction
- added timestamp property to LoggerageObject
v1.0.1
- Fixed bugs and improvement docs
v1.0.0
- Refactor
- Package name changed (old LogStorage.js)
v0.2.3
- First published version