mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 16:31:02 +03:00
987dd994b6
Summary: Allocate and hook up a StructuredLogger at startup if the EdenConfig has the appropriate values set. Reviewed By: simpkins Differential Revision: D18071821 fbshipit-source-id: 3996b6644bbf0c16bb3b9950d57a79d4619a1656
34 lines
654 B
C++
34 lines
654 B
C++
/*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This software may be used and distributed according to the terms of the
|
|
* GNU General Public License version 2.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
namespace facebook {
|
|
namespace eden {
|
|
|
|
struct SessionInfo {
|
|
std::string username;
|
|
std::string hostname;
|
|
std::string os;
|
|
std::string osVersion;
|
|
std::string edenVersion;
|
|
};
|
|
|
|
std::string getOperatingSystemName();
|
|
std::string getOperatingSystemVersion();
|
|
|
|
/**
|
|
* Returns the result of calling gethostname() in a std::string. Throws an
|
|
* exception on failure.
|
|
*/
|
|
std::string getHostname();
|
|
|
|
} // namespace eden
|
|
} // namespace facebook
|