Elaztek Developer Hub
Blamite Game Engine - blam!  00406.12.10.23.1457.blamite
The core library for the Blamite Game Engine.
sentry_test.hpp
Go to the documentation of this file.
1 #include "../console.h"
2 
5 
7 {
13  {
14  public:
16  {
17  name = "sentry_test";
18  description = "Throws Sentry Test Event to dashboard.";
19 
21  }
22 
23  BlamResult Execute(std::vector<std::string> arguments)
24  {
25  using namespace Blam::Logger;
26 #ifdef BLAM_64_BIT
27  LogEventForce("sending test event to sentry", WSV_NONE);
28 
30  /* level */ SENTRY_LEVEL_INFO,
31  /* logger */ "custom",
32  /* message */ "Halo broke something, someone call the cops"
33  ));
34 #else
35  LogEventForce("cannot send test event to sentry, running in 32 bit mode", WSV_NONE);
36 #endif
37 
38  return BlamResult::Success_OK;
39  }
40  };
41 }
BlamCommandType::Builtin
@ Builtin
A command that is hard-coded into the engine.
BlamConsoleCommand::description
std::string description
An optional description of the command. Shown when using the classify command.
Definition: console.h:34
logger.h
BlamConsoleCommand
Class used to represent a console command.
Definition: console.h:31
sentry.h
Blam::Resources::Console::SentryTestCommand::Execute
BlamResult Execute(std::vector< std::string > arguments)
Called upon command execution.
Definition: sentry_test.hpp:23
SENTRY_LEVEL_INFO
@ SENTRY_LEVEL_INFO
Definition: sentry.h:329
sentry_value_new_message_event
SENTRY_API sentry_value_t sentry_value_new_message_event(sentry_level_t level, const char *logger, const char *text)
Creates a new message event value.
BlamConsoleCommand::name
std::string name
The name of the console command.
Definition: console.h:33
Blam::Resources::Console::SentryTestCommand::SentryTestCommand
SentryTestCommand()
Definition: sentry_test.hpp:15
sentry_capture_event
SENTRY_API sentry_uuid_t sentry_capture_event(sentry_value_t event)
Sends a sentry event.
Blam::Resources::Console::SentryTestCommand
A command to test Sentry functionality.
Definition: sentry_test.hpp:12
BlamConsoleCommand::type
BlamCommandType type
The type of command this is. See #Blam::Resources::Console::BlamCommandType for more information.
Definition: console.h:38
Blam::Logger::LogEventForce
BLAM void LogEventForce(std::string message)
Forcibly logs a message to the log and/or console.
Definition: aliases.cpp:262
Blam::Logger
Namespace containing things related to the Blamite Logger.
Definition: logger.h:200
Blam::Resources::Console
Namespace for things relating to the debug console.
Definition: abort.hpp:5