Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
predihood
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Duchateau Fabien
predihood
Commits
1e315b84
Commit
1e315b84
authored
5 years ago
by
Nelly Barret
Browse files
Options
Downloads
Patches
Plain Diff
[R] removed test files
parent
3597588c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
predihood/testlog.py
+0
-23
0 additions, 23 deletions
predihood/testlog.py
with
0 additions
and
23 deletions
predihood/testlog.py
deleted
100644 → 0
+
0
−
23
View file @
3597588c
import
logging
# logging.basicConfig(level=logging.DEBUG)
log_format
=
"
[%(levelname)s]
\t
%(name)s
\t
%(filename)s::%(lineno)d
\t
%(message)s
"
logging
.
basicConfig
(
level
=
'
DEBUG
'
,
format
=
log_format
)
logging
.
debug
(
"
This is a debug message
"
)
logging
.
info
(
"
This is an informational message
"
)
logging
.
warning
(
"
Careful! Something does not look right
"
)
logging
.
error
(
"
You have encountered an error
"
)
logging
.
critical
(
"
You are in trouble
"
)
def
hypotenuse
(
a
,
b
):
"""
Compute the hypotenuse
"""
return
(
a
**
2
+
b
**
2
)
**
0.5
a
=
3
b
=
4
logging
.
debug
(
"
Hypotenuse of {a}, {b} is {c}
"
.
format
(
a
=
a
,
b
=
b
,
c
=
hypotenuse
(
a
,
b
)))
# > INFO:root:Hypotenuse of 3, 4 is 5.0
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment