Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Allow glog to be queried as to whether or not InitGoogleLogging has been called. #125

@KevinLucidyne

Description

@KevinLucidyne

If you call InitGoogleLogging twice, then you get a fatal error and the program ends.

However, there is no way to query glog as to whether glog has already been initialized or not. This query is in the glog code (obviously) but it's not exposed in the API. Please make this public.

Here is the use case where this is useful, for me at least.

I'm adding an unmanaged C++ package that uses glog to a managed C# DLL that is in turn dynamically loaded to a C# managed code application but I need to change the glog default behavior. I can't call InitGoogleLogging in the application so instead I have to do the initialization in a nested singleton class in the DLL.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions