nope/lib/logger/index.browser.ts

71 lines
1.3 KiB
TypeScript
Raw Normal View History

2021-08-30 04:40:28 +00:00
/**
* @author Martin Karkowski
* @email m.karkowski@zema.de
* @create date 2021-08-27 19:57:08
2021-09-09 05:36:01 +00:00
* @modify date 2021-09-05 09:31:19
2021-08-30 04:40:28 +00:00
*/
import * as Logger from "js-logger";
import { getCentralNopeLogger } from "./getLogger";
// Create a Central Logger instance.
getCentralNopeLogger();
2022-01-18 07:01:50 +00:00
/**
* Tracing Logger-Level
*/
export const TRACE = (Logger as any).TRACE;
2022-01-18 07:01:50 +00:00
/**
* Debug Logger-Level
*/
export const DEBUG = (Logger as any).DEBUG;
2022-01-18 07:01:50 +00:00
/**
* Info Logger-Level
*/
export const INFO = (Logger as any).INFO;
2022-01-18 07:01:50 +00:00
/**
* Warn Logger-Level
*/
export const WARN = (Logger as any).WARN;
2022-01-18 07:01:50 +00:00
/**
* Error Logger-Level
*/
export const ERROR = (Logger as any).ERROR;
2022-01-18 07:01:50 +00:00
/**
* The valid log-levels
*/
export const LEVELS = {
trace: TRACE,
debug: DEBUG,
info: INFO,
warn: WARN,
error: ERROR,
};
2022-01-18 07:01:50 +00:00
/**
* The Logger-Interface
*/
2021-09-17 07:14:55 +00:00
export { ILogger } from "js-logger";
2021-12-04 07:25:26 +00:00
export {
getLogerAsEventEmitter,
# 1.2.0 - Added: - `lib/cli/nope` adding scan for ui service - `lib/decorators/container`: Main Container, holding all `methods` and `classes`. Use `getCentralDecoratedContainer()` to get this decorator. - `types/nope/nopePackage.interface` added `IClassDescription` which contains the class description used in the Package Description. - `logger/nopeLogger`: added methods: `enabledFor`, `enableFor`, `shouldLog` - `package.json`: installed types of `ace` text editor. - `ui/helpers.browser`: Created `convertInstanceRenderPage` and `IUiDefinition` - `ui/helpers.nodejs`: Added a Helper to write the Ui-File (`writeUiFile`) and parse its arguments (`readInwriteUiFileArgs`) - `ui/index.*`: Crated the corresponding exports. - Modified: - `lib/decorators/*` Adding the main `container` where every function, service method etc is added. All decorators now safe the decorated elements in the container. - `helpers/json`: Adding `BEGIN_STR` and `END_STR` for parsing functions as constants. - `logger/eventLogging`: simplify `useEventLogger` - `logger/index.browser`: Adating exports. - `loader/loadPackages`: Modifing `IPackageConfig` now extends Partial the `IPackageDescription` - `types/ui/editor/IEditPage`: adapting Type of `getData` to `T`->`any`. Adapting the return of `getPorts` (The Ports will be generated in the ui then) - `types/ui/editor/helpers.interface`: Adapting the `w2ui` and added `w2uiHelpers` and added `ace`. Rearanging `IRenderData` element. to compact the data. - `types/ui/editor/render.callbacks`: Rearange the Generic Type of `TRenderInstancePage` and Renaming `TCreatorPage` to `TInstanceManagerPage`. Adapting the `option` of `TInstanceManagerPage` regarding the `createInstance` and `instances` - `types/ui/editor/index`: Adapting the Exports. - `lib/index.browser`: Exporting `ui` elements - `lib/index.nodejs`: Exporting `ui` elements - `lib/types/index`: Exporting `ui` elements - Fixes: - `types/nope/nopeInstanceManager.interface`: Fixing Type of createInstance. Now the Type `I` extends `INopeModule` instead of being set to `IGenericNopeModule`
2022-07-02 09:30:10 +00:00
LoggerAsEventEmitter,
2021-12-04 07:25:26 +00:00
TCallback,
TCallbackWithLevel,
2022-01-18 20:51:19 +00:00
useEventLogger,
2021-12-04 07:25:26 +00:00
} from "./eventLogging";
export {
defineNopeLogger,
getCentralNopeLogger,
getNopeLogger,
2022-01-18 20:51:19 +00:00
ValidLoggerDefinition,
} from "./getLogger";
# 1.2.0 - Added: - `lib/cli/nope` adding scan for ui service - `lib/decorators/container`: Main Container, holding all `methods` and `classes`. Use `getCentralDecoratedContainer()` to get this decorator. - `types/nope/nopePackage.interface` added `IClassDescription` which contains the class description used in the Package Description. - `logger/nopeLogger`: added methods: `enabledFor`, `enableFor`, `shouldLog` - `package.json`: installed types of `ace` text editor. - `ui/helpers.browser`: Created `convertInstanceRenderPage` and `IUiDefinition` - `ui/helpers.nodejs`: Added a Helper to write the Ui-File (`writeUiFile`) and parse its arguments (`readInwriteUiFileArgs`) - `ui/index.*`: Crated the corresponding exports. - Modified: - `lib/decorators/*` Adding the main `container` where every function, service method etc is added. All decorators now safe the decorated elements in the container. - `helpers/json`: Adding `BEGIN_STR` and `END_STR` for parsing functions as constants. - `logger/eventLogging`: simplify `useEventLogger` - `logger/index.browser`: Adating exports. - `loader/loadPackages`: Modifing `IPackageConfig` now extends Partial the `IPackageDescription` - `types/ui/editor/IEditPage`: adapting Type of `getData` to `T`->`any`. Adapting the return of `getPorts` (The Ports will be generated in the ui then) - `types/ui/editor/helpers.interface`: Adapting the `w2ui` and added `w2uiHelpers` and added `ace`. Rearanging `IRenderData` element. to compact the data. - `types/ui/editor/render.callbacks`: Rearange the Generic Type of `TRenderInstancePage` and Renaming `TCreatorPage` to `TInstanceManagerPage`. Adapting the `option` of `TInstanceManagerPage` regarding the `createInstance` and `instances` - `types/ui/editor/index`: Adapting the Exports. - `lib/index.browser`: Exporting `ui` elements - `lib/index.nodejs`: Exporting `ui` elements - `lib/types/index`: Exporting `ui` elements - Fixes: - `types/nope/nopeInstanceManager.interface`: Fixing Type of createInstance. Now the Type `I` extends `INopeModule` instead of being set to `IGenericNopeModule`
2022-07-02 09:30:10 +00:00
export {
enabledFor,
enableFor,
LoggerLevel,
LoggerLevels,
shouldLog,
} from "./nopeLogger";
2021-08-30 04:40:28 +00:00
export { setGlobalLoggerLevel } from "./setGlobalLoggerLevel";