Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
628b3585
Commit
628b3585
authored
Apr 01, 2021
by
Pavel Vainerman
Committed by
Pavel Vainerman
May 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[uwebsocketgate]: logs refactoring (used "verbosity" logs)
parent
2389cccc
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
68 additions
and
59 deletions
+68
-59
UWebSocketGate.cc
extensions/UWebSocketGate/UWebSocketGate.cc
+58
-58
UWebSocketGateSugar.h
extensions/UWebSocketGate/UWebSocketGateSugar.h
+3
-0
start_fg.sh
extensions/UWebSocketGate/start_fg.sh
+1
-1
Configuration.cc
src/Core/Configuration.cc
+6
-0
No files found.
extensions/UWebSocketGate/UWebSocketGate.cc
View file @
628b3585
This diff is collapsed.
Click to expand it.
extensions/UWebSocketGate/UWebSocketGateSugar.h
View file @
628b3585
...
@@ -4,6 +4,9 @@
...
@@ -4,6 +4,9 @@
#ifndef myinfo
#ifndef myinfo
#define myinfo if( mylog->debugging(Debug::INFO) ) mylog->info()
#define myinfo if( mylog->debugging(Debug::INFO) ) mylog->info()
#endif
#endif
#ifndef myinfoV
#define myinfoV(N) if( mylog->debugging(Debug::INFO) ) mylog->V(N)[Debug::INFO]
#endif
#ifndef mywarn
#ifndef mywarn
#define mywarn if( mylog->debugging(Debug::WARN) ) mylog->warn()
#define mywarn if( mylog->debugging(Debug::WARN) ) mylog->warn()
#endif
#endif
...
...
extensions/UWebSocketGate/start_fg.sh
View file @
628b3585
...
@@ -2,4 +2,4 @@
...
@@ -2,4 +2,4 @@
ulimit
-Sc
1000000
ulimit
-Sc
1000000
uniset2-start.sh
-f
./uniset2-wsgate
--confile
test.xml
--ws-name
UWebSocketGate1
--ws-log-add-levels
any
$*
uniset2-start.sh
-f
./uniset2-wsgate
--confile
test.xml
--ws-name
UWebSocketGate1
--ws-log-add-levels
any
--ws-log-verbosity
5
$*
src/Core/Configuration.cc
View file @
628b3585
...
@@ -67,6 +67,7 @@ std::string uniset::Configuration::help()
...
@@ -67,6 +67,7 @@ std::string uniset::Configuration::help()
print_help
(
os
,
25
,
"--ulog-show-milliseconds"
,
"Выводить время с миллисекундами
\n
"
);
print_help
(
os
,
25
,
"--ulog-show-milliseconds"
,
"Выводить время с миллисекундами
\n
"
);
print_help
(
os
,
25
,
"--ulog-no-debug"
,
"отключение логов
\n
"
);
print_help
(
os
,
25
,
"--ulog-no-debug"
,
"отключение логов
\n
"
);
print_help
(
os
,
25
,
"--ulog-logfile"
,
"перенаправление лога в файл
\n
"
);
print_help
(
os
,
25
,
"--ulog-logfile"
,
"перенаправление лога в файл
\n
"
);
print_help
(
os
,
25
,
"--ulog-levels N"
,
"уровень 'говорливости' логов"
);
return
os
.
str
();
return
os
.
str
();
}
}
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
...
@@ -1025,6 +1026,7 @@ namespace uniset
...
@@ -1025,6 +1026,7 @@ namespace uniset
string
del_level
(
"--"
+
debname
+
"-del-levels"
);
string
del_level
(
"--"
+
debname
+
"-del-levels"
);
string
show_msec
(
"--"
+
debname
+
"-show-milliseconds"
);
string
show_msec
(
"--"
+
debname
+
"-show-milliseconds"
);
string
show_usec
(
"--"
+
debname
+
"-show-microseconds"
);
string
show_usec
(
"--"
+
debname
+
"-show-microseconds"
);
string
verb_level
(
"--"
+
debname
+
"-verbosity"
);
// смотрим командную строку
// смотрим командную строку
for
(
int
i
=
1
;
i
<
(
_argc
-
1
);
i
++
)
for
(
int
i
=
1
;
i
<
(
_argc
-
1
);
i
++
)
...
@@ -1049,6 +1051,10 @@ namespace uniset
...
@@ -1049,6 +1051,10 @@ namespace uniset
{
{
deb
->
showMilliseconds
(
true
);
deb
->
showMilliseconds
(
true
);
}
}
else
if
(
verb_level
==
_argv
[
i
]
)
{
deb
->
verbose
(
uniset
::
uni_atoi
(
_argv
[
i
+
1
]));
}
}
}
if
(
!
debug_file
.
empty
()
)
if
(
!
debug_file
.
empty
()
)
...
...
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