namirasoft-log 1.4.7 → 1.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/.ns-sdkg-file-keep +11 -11
  2. package/dist/NamirasoftLogServerBase.d.ts +2 -2
  3. package/dist/NamirasoftLogServerBase.js +1 -1
  4. package/dist/NamirasoftLogServerBase.js.map +1 -1
  5. package/dist/StreamFile.js +17 -7
  6. package/dist/StreamFile.js.map +1 -1
  7. package/dist/meta/LogGroupCategoryMetaTable.d.ts +4 -3
  8. package/dist/meta/LogGroupCategoryMetaTable.js +10 -9
  9. package/dist/meta/LogGroupCategoryMetaTable.js.map +1 -1
  10. package/dist/meta/LogGroupFieldMetaTable.d.ts +4 -3
  11. package/dist/meta/LogGroupFieldMetaTable.js +12 -11
  12. package/dist/meta/LogGroupFieldMetaTable.js.map +1 -1
  13. package/dist/meta/LogGroupMetaTable.d.ts +4 -3
  14. package/dist/meta/LogGroupMetaTable.js +12 -11
  15. package/dist/meta/LogGroupMetaTable.js.map +1 -1
  16. package/dist/meta/LogGroupTagMetaTable.d.ts +4 -3
  17. package/dist/meta/LogGroupTagMetaTable.js +12 -11
  18. package/dist/meta/LogGroupTagMetaTable.js.map +1 -1
  19. package/dist/meta/LogMetaTable.d.ts +4 -3
  20. package/dist/meta/LogMetaTable.js +12 -11
  21. package/dist/meta/LogMetaTable.js.map +1 -1
  22. package/dist/meta/MetaDatabase.d.ts +2 -1
  23. package/dist/meta/MetaDatabase.js +8 -6
  24. package/dist/meta/MetaDatabase.js.map +1 -1
  25. package/package.json +27 -27
  26. package/src/BaseFormatter.ts +36 -36
  27. package/src/FormatterFull.ts +19 -19
  28. package/src/FormatterShort.ts +12 -12
  29. package/src/IFormatter.ts +5 -5
  30. package/src/ILogger.ts +17 -17
  31. package/src/IStream.ts +4 -4
  32. package/src/Log.ts +13 -13
  33. package/src/LogLevel.ts +11 -11
  34. package/src/Logger.ts +126 -126
  35. package/src/NamirasoftLogServer.ts +50 -50
  36. package/src/NamirasoftLogServerBase.ts +29 -29
  37. package/src/NamirasoftLogServerLog.ts +56 -56
  38. package/src/NamirasoftLogServerLogGroup.ts +69 -69
  39. package/src/NamirasoftLogServerLogGroupCategory.ts +62 -62
  40. package/src/NamirasoftLogServerLogGroupField.ts +69 -69
  41. package/src/NamirasoftLogServerLogGroupTag.ts +69 -69
  42. package/src/StreamConsole.ts +37 -37
  43. package/src/StreamFile.ts +47 -47
  44. package/src/StreamNamirasoftLog.ts +30 -30
  45. package/src/command/LogCommand.ts +35 -35
  46. package/src/command/LogGroupCategoryListCommand.ts +44 -44
  47. package/src/command/LogGroupFieldListCommand.ts +44 -44
  48. package/src/command/LogGroupListCommand.ts +44 -44
  49. package/src/command/LogGroupTagListCommand.ts +44 -44
  50. package/src/command/LogListCommand.ts +44 -44
  51. package/src/command/cli.ts +44 -44
  52. package/src/meta/LogGroupCategoryMetaTable.ts +45 -44
  53. package/src/meta/LogGroupFieldMetaTable.ts +49 -48
  54. package/src/meta/LogGroupMetaTable.ts +49 -48
  55. package/src/meta/LogGroupTagMetaTable.ts +49 -48
  56. package/src/meta/LogMetaTable.ts +14 -13
  57. package/src/meta/MetaDatabase.ts +8 -6
  58. package/src/row/LogGroupCategoryRow.ts +28 -28
  59. package/src/row/LogGroupFieldRow.ts +30 -30
  60. package/src/row/LogGroupRow.ts +32 -32
  61. package/src/row/LogGroupTagRow.ts +30 -30
@@ -1,49 +1,50 @@
1
- /****************************************************************/
2
- /* */
3
- /* This is an Auto-Generated File */
4
- /* Made By */
5
- /* Namirasoft SDK Generator NPM Package */
6
- /* */
7
- /****************************************************************/
8
- /****************************************************************/
9
- /* */
10
- /* Please do not make any change to this file */
11
- /* If any changed is reqired, ns-sdkg command must be used */
12
- /* */
13
- /****************************************************************/
14
- /****************************************************************/
15
- /* */
16
- /* Namira Software Corporation */
17
- /* https://namirasoft.com */
18
- /* */
19
- /****************************************************************/
20
-
21
- import { BaseMetaColumn, BaseMetaTable } from "namirasoft-core";
22
-
23
- export class LogGroupMetaTable extends BaseMetaTable
24
- {
25
- public columns!: {
26
- id: BaseMetaColumn;
27
- user_id: BaseMetaColumn;
28
- workspace_id: BaseMetaColumn;
29
- name: BaseMetaColumn;
30
- retention_unit: BaseMetaColumn;
31
- retention_value: BaseMetaColumn;
32
- created_at: BaseMetaColumn;
33
- updated_at: BaseMetaColumn;
34
- }
35
- constructor()
36
- {
37
- super("log_group", "Log Group");
38
- this.columns = {
39
- id: new BaseMetaColumn("id", "Id", "String", true),
40
- user_id: new BaseMetaColumn("user_id", "User Id", "String", true),
41
- workspace_id: new BaseMetaColumn("workspace_id", "Workspace Id", "String", true),
42
- name: new BaseMetaColumn("name", "Name", "String", true),
43
- retention_unit: new BaseMetaColumn("retention_unit", "Retention Unit", "Enum", true),
44
- retention_value: new BaseMetaColumn("retention_value", "Retention Value", "Integer", true),
45
- created_at: new BaseMetaColumn("created_at", "Created At", "DateTime", true),
46
- updated_at: new BaseMetaColumn("updated_at", "Updated At", "DateTime", true),
47
- };
48
- }
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any changed is reqired, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { BaseMetaColumn, BaseUUID } from "namirasoft-core";
22
+ import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
23
+
24
+ export class LogGroupMetaTable extends NSBaseMetaTable
25
+ {
26
+ public override columns: {
27
+ id: BaseMetaColumn;
28
+ user_id: BaseMetaColumn;
29
+ workspace_id: BaseMetaColumn;
30
+ name: BaseMetaColumn;
31
+ retention_unit: BaseMetaColumn;
32
+ retention_value: BaseMetaColumn;
33
+ created_at: BaseMetaColumn;
34
+ updated_at: BaseMetaColumn;
35
+ }
36
+ constructor(database: NSBaseMetaDatabase)
37
+ {
38
+ super(database, "log_group", "Log Group", new BaseUUID(""));
39
+ this.columns = {
40
+ id: new BaseMetaColumn(this, "id", "Id", "String", true),
41
+ user_id: new BaseMetaColumn(this, "user_id", "User Id", "String", true),
42
+ workspace_id: new BaseMetaColumn(this, "workspace_id", "Workspace Id", "String", true),
43
+ name: new BaseMetaColumn(this, "name", "Name", "String", true),
44
+ retention_unit: new BaseMetaColumn(this, "retention_unit", "Retention Unit", "Enum", true),
45
+ retention_value: new BaseMetaColumn(this, "retention_value", "Retention Value", "Integer", true),
46
+ created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
47
+ updated_at: new BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
48
+ };
49
+ }
49
50
  };
@@ -1,49 +1,50 @@
1
- /****************************************************************/
2
- /* */
3
- /* This is an Auto-Generated File */
4
- /* Made By */
5
- /* Namirasoft SDK Generator NPM Package */
6
- /* */
7
- /****************************************************************/
8
- /****************************************************************/
9
- /* */
10
- /* Please do not make any change to this file */
11
- /* If any changed is reqired, ns-sdkg command must be used */
12
- /* */
13
- /****************************************************************/
14
- /****************************************************************/
15
- /* */
16
- /* Namira Software Corporation */
17
- /* https://namirasoft.com */
18
- /* */
19
- /****************************************************************/
20
-
21
- import { BaseMetaColumn, BaseMetaTable } from "namirasoft-core";
22
-
23
- export class LogGroupTagMetaTable extends BaseMetaTable
24
- {
25
- public columns!: {
26
- id: BaseMetaColumn;
27
- user_id: BaseMetaColumn;
28
- entity_id: BaseMetaColumn;
29
- name: BaseMetaColumn;
30
- value: BaseMetaColumn;
31
- description: BaseMetaColumn;
32
- created_at: BaseMetaColumn;
33
- updated_at: BaseMetaColumn;
34
- }
35
- constructor()
36
- {
37
- super("log_group_tag", "Log Group Tag");
38
- this.columns = {
39
- id: new BaseMetaColumn("id", "Id", "Integer", true),
40
- user_id: new BaseMetaColumn("user_id", "User Id", "String", true),
41
- entity_id: new BaseMetaColumn("entity_id", "Entity Id", "String", true),
42
- name: new BaseMetaColumn("name", "Name", "String", true),
43
- value: new BaseMetaColumn("value", "Value", "String", true),
44
- description: new BaseMetaColumn("description", "Description", "String", false),
45
- created_at: new BaseMetaColumn("created_at", "Created At", "DateTime", true),
46
- updated_at: new BaseMetaColumn("updated_at", "Updated At", "DateTime", true),
47
- };
48
- }
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any changed is reqired, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { BaseMetaColumn, BaseUUID } from "namirasoft-core";
22
+ import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
23
+
24
+ export class LogGroupTagMetaTable extends NSBaseMetaTable
25
+ {
26
+ public override columns: {
27
+ id: BaseMetaColumn;
28
+ user_id: BaseMetaColumn;
29
+ entity_id: BaseMetaColumn;
30
+ name: BaseMetaColumn;
31
+ value: BaseMetaColumn;
32
+ description: BaseMetaColumn;
33
+ created_at: BaseMetaColumn;
34
+ updated_at: BaseMetaColumn;
35
+ }
36
+ constructor(database: NSBaseMetaDatabase)
37
+ {
38
+ super(database, "log_group_tag", "Log Group Tag", new BaseUUID(""));
39
+ this.columns = {
40
+ id: new BaseMetaColumn(this, "id", "Id", "Integer", true),
41
+ user_id: new BaseMetaColumn(this, "user_id", "User Id", "String", true),
42
+ entity_id: new BaseMetaColumn(this, "entity_id", "Entity Id", "String", true),
43
+ name: new BaseMetaColumn(this, "name", "Name", "String", true),
44
+ value: new BaseMetaColumn(this, "value", "Value", "String", true),
45
+ description: new BaseMetaColumn(this, "description", "Description", "String", false),
46
+ created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
47
+ updated_at: new BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
48
+ };
49
+ }
49
50
  };
@@ -18,11 +18,12 @@
18
18
  /* */
19
19
  /****************************************************************/
20
20
 
21
- import { BaseMetaColumn, BaseMetaTable } from "namirasoft-core";
21
+ import { BaseMetaColumn, BaseUUID } from "namirasoft-core";
22
+ import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
22
23
 
23
- export class LogMetaTable extends BaseMetaTable
24
+ export class LogMetaTable extends NSBaseMetaTable
24
25
  {
25
- public columns!: {
26
+ public override columns: {
26
27
  id: BaseMetaColumn;
27
28
  user_id: BaseMetaColumn;
28
29
  log_group_id: BaseMetaColumn;
@@ -32,18 +33,18 @@ export class LogMetaTable extends BaseMetaTable
32
33
  message: BaseMetaColumn;
33
34
  created_at: BaseMetaColumn;
34
35
  }
35
- constructor()
36
+ constructor(database: NSBaseMetaDatabase)
36
37
  {
37
- super("log", "Log");
38
+ super(database, "log", "Log", new BaseUUID(""));
38
39
  this.columns = {
39
- id: new BaseMetaColumn("id", "Id", "String", true),
40
- user_id: new BaseMetaColumn("user_id", "User Id", "String", true),
41
- log_group_id: new BaseMetaColumn("log_group_id", "Log Group Id", "String", true),
42
- product_id: new BaseMetaColumn("product_id", "Product Id", "String", false),
43
- workspace_id: new BaseMetaColumn("workspace_id", "Workspace Id", "String", false),
44
- level: new BaseMetaColumn("level", "Level", "String", true),
45
- message: new BaseMetaColumn("message", "Message", "String", true),
46
- created_at: new BaseMetaColumn("created_at", "Created At", "DateTime", true),
40
+ id: new BaseMetaColumn(this, "id", "Id", "String", true),
41
+ user_id: new BaseMetaColumn(this, "user_id", "User Id", "String", true),
42
+ log_group_id: new BaseMetaColumn(this, "log_group_id", "Log Group Id", "String", true),
43
+ product_id: new BaseMetaColumn(this, "product_id", "Product Id", "String", false),
44
+ workspace_id: new BaseMetaColumn(this, "workspace_id", "Workspace Id", "String", false),
45
+ level: new BaseMetaColumn(this, "level", "Level", "String", true),
46
+ message: new BaseMetaColumn(this, "message", "Message", "String", true),
47
+ created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
47
48
  };
48
49
  }
49
50
  };
@@ -18,13 +18,14 @@
18
18
  /* */
19
19
  /****************************************************************/
20
20
 
21
+ import { NSBaseMetaDatabase } from "namirasoft-site";
21
22
  import { LogGroupCategoryMetaTable } from "./LogGroupCategoryMetaTable";
22
23
  import { LogGroupFieldMetaTable } from "./LogGroupFieldMetaTable";
23
24
  import { LogGroupMetaTable } from "./LogGroupMetaTable";
24
25
  import { LogGroupTagMetaTable } from "./LogGroupTagMetaTable";
25
26
  import { LogMetaTable } from "./LogMetaTable";
26
27
 
27
- export class MetaDatabase
28
+ export class MetaDatabase extends NSBaseMetaDatabase
28
29
  {
29
30
  public static main: MetaDatabase = new MetaDatabase();
30
31
  public log_group: LogGroupMetaTable;
@@ -34,10 +35,11 @@ export class MetaDatabase
34
35
  public log: LogMetaTable;
35
36
  constructor()
36
37
  {
37
- this.log_group = new LogGroupMetaTable();
38
- this.log_group_category = new LogGroupCategoryMetaTable();
39
- this.log_group_field = new LogGroupFieldMetaTable();
40
- this.log_group_tag = new LogGroupTagMetaTable();
41
- this.log = new LogMetaTable();
38
+ super({ id: "log", name: "Log", description: "Log Database", headline: "Log Database", link: "log", logo: "log.png" });
39
+ this.log_group = new LogGroupMetaTable(this);
40
+ this.log_group_category = new LogGroupCategoryMetaTable(this);
41
+ this.log_group_field = new LogGroupFieldMetaTable(this);
42
+ this.log_group_tag = new LogGroupTagMetaTable(this);
43
+ this.log = new LogMetaTable(this);
42
44
  }
43
45
  };
@@ -1,29 +1,29 @@
1
- /****************************************************************/
2
- /* */
3
- /* This is an Auto-Generated File */
4
- /* Made By */
5
- /* Namirasoft SDK Generator NPM Package */
6
- /* */
7
- /****************************************************************/
8
- /****************************************************************/
9
- /* */
10
- /* Please do not make any change to this file */
11
- /* If any changed is reqired, ns-sdkg command must be used */
12
- /* */
13
- /****************************************************************/
14
- /****************************************************************/
15
- /* */
16
- /* Namira Software Corporation */
17
- /* https://namirasoft.com */
18
- /* */
19
- /****************************************************************/
20
-
21
- export type LogGroupCategoryRow =
22
- {
23
- id: number;
24
- user_id: string;
25
- entity_id: string;
26
- category_id: string;
27
- created_at: Date;
28
- updated_at: Date;
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any changed is reqired, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ export type LogGroupCategoryRow =
22
+ {
23
+ id: number;
24
+ user_id: string;
25
+ entity_id: string;
26
+ category_id: string;
27
+ created_at: Date;
28
+ updated_at: Date;
29
29
  }
@@ -1,31 +1,31 @@
1
- /****************************************************************/
2
- /* */
3
- /* This is an Auto-Generated File */
4
- /* Made By */
5
- /* Namirasoft SDK Generator NPM Package */
6
- /* */
7
- /****************************************************************/
8
- /****************************************************************/
9
- /* */
10
- /* Please do not make any change to this file */
11
- /* If any changed is reqired, ns-sdkg command must be used */
12
- /* */
13
- /****************************************************************/
14
- /****************************************************************/
15
- /* */
16
- /* Namira Software Corporation */
17
- /* https://namirasoft.com */
18
- /* */
19
- /****************************************************************/
20
-
21
- export type LogGroupFieldRow =
22
- {
23
- id: number;
24
- user_id: string;
25
- entity_id: string;
26
- field_id: string;
27
- value: string;
28
- description: (string | null);
29
- created_at: Date;
30
- updated_at: Date;
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any changed is reqired, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ export type LogGroupFieldRow =
22
+ {
23
+ id: number;
24
+ user_id: string;
25
+ entity_id: string;
26
+ field_id: string;
27
+ value: string;
28
+ description: (string | null);
29
+ created_at: Date;
30
+ updated_at: Date;
31
31
  }
@@ -1,33 +1,33 @@
1
- /****************************************************************/
2
- /* */
3
- /* This is an Auto-Generated File */
4
- /* Made By */
5
- /* Namirasoft SDK Generator NPM Package */
6
- /* */
7
- /****************************************************************/
8
- /****************************************************************/
9
- /* */
10
- /* Please do not make any change to this file */
11
- /* If any changed is reqired, ns-sdkg command must be used */
12
- /* */
13
- /****************************************************************/
14
- /****************************************************************/
15
- /* */
16
- /* Namira Software Corporation */
17
- /* https://namirasoft.com */
18
- /* */
19
- /****************************************************************/
20
-
21
- import { LogGroupRetentionUnit } from "../enum/LogGroupRetentionUnit";
22
-
23
- export type LogGroupRow =
24
- {
25
- id: string;
26
- user_id: string;
27
- workspace_id: string;
28
- name: string;
29
- retention_unit: LogGroupRetentionUnit;
30
- retention_value: number;
31
- created_at: Date;
32
- updated_at: Date;
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any changed is reqired, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { LogGroupRetentionUnit } from "../enum/LogGroupRetentionUnit";
22
+
23
+ export type LogGroupRow =
24
+ {
25
+ id: string;
26
+ user_id: string;
27
+ workspace_id: string;
28
+ name: string;
29
+ retention_unit: LogGroupRetentionUnit;
30
+ retention_value: number;
31
+ created_at: Date;
32
+ updated_at: Date;
33
33
  }
@@ -1,31 +1,31 @@
1
- /****************************************************************/
2
- /* */
3
- /* This is an Auto-Generated File */
4
- /* Made By */
5
- /* Namirasoft SDK Generator NPM Package */
6
- /* */
7
- /****************************************************************/
8
- /****************************************************************/
9
- /* */
10
- /* Please do not make any change to this file */
11
- /* If any changed is reqired, ns-sdkg command must be used */
12
- /* */
13
- /****************************************************************/
14
- /****************************************************************/
15
- /* */
16
- /* Namira Software Corporation */
17
- /* https://namirasoft.com */
18
- /* */
19
- /****************************************************************/
20
-
21
- export type LogGroupTagRow =
22
- {
23
- id: number;
24
- user_id: string;
25
- entity_id: string;
26
- name: string;
27
- value: string;
28
- description: (string | null);
29
- created_at: Date;
30
- updated_at: Date;
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any changed is reqired, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ export type LogGroupTagRow =
22
+ {
23
+ id: number;
24
+ user_id: string;
25
+ entity_id: string;
26
+ name: string;
27
+ value: string;
28
+ description: (string | null);
29
+ created_at: Date;
30
+ updated_at: Date;
31
31
  }