ESPHome
2025.2.2
Main Page
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
y
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
d
e
f
i
j
l
m
n
p
q
r
s
t
u
v
+
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
c
d
o
p
s
t
v
w
+
Enumerations
b
c
e
f
i
m
n
p
r
s
t
v
+
Enumerator
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Related Functions
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
+
Functions
_
a
l
m
o
s
t
u
+
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
Typedefs
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Modules
Pages
esphome
esphome
components
logger
logger_host.cpp
Go to the documentation of this file.
1
#if defined(USE_HOST)
2
#include "
logger.h
"
3
4
namespace
esphome
{
5
namespace
logger {
6
7
void
HOT
Logger::write_msg_
(
const
char
*msg) {
8
time_t rawtime;
9
struct
tm *timeinfo;
10
char
buffer[80];
11
12
time(&rawtime);
13
timeinfo = localtime(&rawtime);
14
strftime(buffer,
sizeof
buffer,
"[%H:%M:%S]"
, timeinfo);
15
fputs(buffer, stdout);
16
puts(msg);
17
}
18
19
void
Logger::pre_setup
() {
global_logger
=
this
; }
20
21
}
// namespace logger
22
}
// namespace esphome
23
24
#endif
esphome::logger::global_logger
Logger * global_logger
Definition:
logger.cpp:200
esphome::logger::Logger::pre_setup
void pre_setup()
Set up this component.
Definition:
logger_esp32.cpp:97
logger.h
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
esphome::logger::Logger::write_msg_
void write_msg_(const char *msg)
Definition:
logger_esp32.cpp:175
Generated by
1.8.13