Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nodejs-logger
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mirera
nodejs-logger
Commits
229fe3d0
Commit
229fe3d0
authored
Nov 18, 2016
by
Никита Бесшапошников
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corred color of not coloured text.(Use [0m - no color)
parent
738f5a41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
index.js
index.js
+5
-5
No files found.
index.js
View file @
229fe3d0
...
...
@@ -50,7 +50,7 @@ const logger = {
},
debug
:
function
()
{
let
str
=
this
.
_prefix
+
'
\
033[34m Debug:
\
033[
3
0m
'
+
this
.
_makeString
(
arguments
);
let
str
=
this
.
_prefix
+
'
\
033[34m Debug:
\
033[0m
'
+
this
.
_makeString
(
arguments
);
if
(
this
.
_level
>=
this
.
DEBUG
)
{
this
.
_console
(
str
);
this
.
_file
(
str
);
...
...
@@ -58,7 +58,7 @@ const logger = {
}
},
info
:
function
()
{
let
str
=
this
.
_prefix
+
'
\
033[32m Info:
\
033[
3
0m
'
+
this
.
_makeString
(
arguments
);
let
str
=
this
.
_prefix
+
'
\
033[32m Info:
\
033[0m
'
+
this
.
_makeString
(
arguments
);
if
(
this
.
_level
>=
this
.
INFO
)
{
this
.
_console
(
str
);
this
.
_file
(
str
);
...
...
@@ -66,7 +66,7 @@ const logger = {
}
},
warning
:
function
()
{
let
str
=
this
.
_prefix
+
'
\
033[33m Warning:
\
033[
3
0m
'
+
this
.
_makeString
(
arguments
);
let
str
=
this
.
_prefix
+
'
\
033[33m Warning:
\
033[0m
'
+
this
.
_makeString
(
arguments
);
if
(
this
.
_level
>=
this
.
WARNING
)
{
this
.
_console
(
str
);
this
.
_file
(
str
);
...
...
@@ -74,7 +74,7 @@ const logger = {
}
},
error
:
function
()
{
let
str
=
this
.
_prefix
+
'
\
033[31m Error:
\
033[
3
0m
'
+
this
.
_makeString
(
arguments
);
let
str
=
this
.
_prefix
+
'
\
033[31m Error:
\
033[0m
'
+
this
.
_makeString
(
arguments
);
if
(
this
.
_level
>=
this
.
ERROR
)
{
this
.
_console
(
str
);
this
.
_file
(
str
);
...
...
@@ -82,7 +82,7 @@ const logger = {
}
},
fatal
:
function
()
{
let
str
=
this
.
_prefix
+
'
\
033[35m Fatal:
\
033[
3
0m
'
+
this
.
_makeString
(
arguments
);
let
str
=
this
.
_prefix
+
'
\
033[35m Fatal:
\
033[0m
'
+
this
.
_makeString
(
arguments
);
if
(
this
.
_level
>=
this
.
FATAL
)
{
this
.
_console
(
str
);
this
.
_file
(
str
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment