Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
total_control_app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Martin Drechsler
total_control_app
Commits
8729e0fd
Commit
8729e0fd
authored
May 21, 2019
by
Martin Drechsler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cutelog example added
parent
17ed9d1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
cutelog_example.py
examples/cutelog_example.py
+21
-0
No files found.
examples/cutelog_example.py
0 → 100644
View file @
8729e0fd
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue May 21 20:08:33 2019
@author: liaf-ankylosaurus-admin
"""
import
logging
from
logging.handlers
import
SocketHandler
log
=
logging
.
getLogger
(
'Root logger'
)
gui_log
=
log
.
getChild
(
"GUI logger"
)
worker_log
=
log
.
getChild
(
"Worker logger"
)
log
.
setLevel
(
1
)
# to send all records to cutelog
socket_handler
=
SocketHandler
(
'127.0.0.1'
,
19996
)
# default listening address
log
.
addHandler
(
socket_handler
)
log
.
info
(
'Hello world!'
)
gui_log
.
info
(
'hello'
)
worker_log
.
info
(
'hello'
)
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