Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions absl/log/initialize.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,9 @@ void InitializeLogImpl(absl::TimeZone time_zone) {

void InitializeLog() { InitializeLogImpl(absl::LocalTimeZone()); }

bool LogIsInitialized() {
return absl::log_internal::IsInitialized();
}

ABSL_NAMESPACE_END
} // namespace absl
1 change: 1 addition & 0 deletions absl/log/initialize.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ ABSL_NAMESPACE_BEGIN
//
// There is no corresponding function to shut down the logging library.
void InitializeLog();
bool LogIsInitialized();

ABSL_NAMESPACE_END
} // namespace absl
Expand Down