File tree 5 files changed +16
-16
lines changed
5 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ const format = (n: number) => n.toString().padStart(2, "0");
7
7
export default class Dater extends Date {
8
8
/**
9
9
* Get date string as yyyy-mm-dd hh:mm:ss
10
- * @param separator
11
- * @returns
10
+ * @param separator
11
+ * @returns
12
12
*/
13
13
toLocaleString ( separator = "-" ) : string {
14
14
const dateString = this . toLocaleDateString ( separator ) ;
@@ -18,8 +18,8 @@ export default class Dater extends Date {
18
18
19
19
/**
20
20
* Get date string as yyyy-mm-dd
21
- * @param separator
22
- * @returns
21
+ * @param separator
22
+ * @returns
23
23
*/
24
24
toLocaleDateString ( separator = "-" ) : string {
25
25
const year = format ( this . getFullYear ( ) ) ;
@@ -30,7 +30,7 @@ export default class Dater extends Date {
30
30
31
31
/**
32
32
* Get time string as hh:mm:ss
33
- * @returns
33
+ * @returns
34
34
*/
35
35
toLocaleTimeString ( ) : string {
36
36
const hour = format ( this . getHours ( ) ) ;
Original file line number Diff line number Diff line change @@ -96,8 +96,8 @@ export default class Logger {
96
96
97
97
/**
98
98
* init file logger
99
- * @param dir
100
- * @param options
99
+ * @param dir
100
+ * @param options
101
101
*/
102
102
async initFileLogger (
103
103
dir : string ,
Original file line number Diff line number Diff line change @@ -3,15 +3,15 @@ import { writeAll } from "./deps.ts";
3
3
4
4
/**
5
5
* Deno stdout log function
6
- * @param msg
6
+ * @param msg
7
7
*/
8
8
export async function stdout ( msg : Uint8Array ) : Promise < void > {
9
9
await writeAll ( Deno . stdout , msg ) ;
10
10
}
11
11
12
12
/**
13
13
* default log function
14
- * @param args
14
+ * @param args
15
15
*/
16
16
export default function log ( ...args : unknown [ ] ) : void {
17
17
console . log ( ...args ) ;
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export default class Writable {
13
13
14
14
/**
15
15
* Writable constructor
16
- * @param path
16
+ * @param path
17
17
*/
18
18
constructor ( path : string ) {
19
19
this . path = path ;
@@ -33,7 +33,7 @@ export default class Writable {
33
33
34
34
/**
35
35
* Write message to file
36
- * @param msg
36
+ * @param msg
37
37
*/
38
38
async write ( msg : Uint8Array ) : Promise < void > {
39
39
await writeAll ( this . file , msg ) ;
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ export default class Writer {
17
17
18
18
/**
19
19
* Writer constructor
20
- * @param param0
21
- * @returns
20
+ * @param param0
21
+ * @returns
22
22
*/
23
23
constructor ( { maxBytes, maxBackupCount } : WriterConstructor ) {
24
24
if ( maxBytes !== undefined && maxBytes <= 0 ) {
@@ -45,8 +45,8 @@ export default class Writer {
45
45
46
46
/**
47
47
* Write message to file
48
- * @param param0
49
- * @returns
48
+ * @param param0
49
+ * @returns
50
50
*/
51
51
async write ( { path, msg, type } : WriterWrite ) : Promise < void > {
52
52
const msgByteLength = msg . byteLength ;
@@ -80,7 +80,7 @@ export default class Writer {
80
80
81
81
/**
82
82
* Rotate log files
83
- * @param path
83
+ * @param path
84
84
*/
85
85
async rotateLogFiles ( path : string ) : Promise < void > {
86
86
if ( this . maxBackupCount ) {
You can’t perform that action at this time.
0 commit comments