Skip to content

Instantly share code, notes, and snippets.

@doevelopper
Created August 7, 2023 08:38
Show Gist options
  • Save doevelopper/0b7af85ba4ded2d3fd5105a350969a63 to your computer and use it in GitHub Desktop.
Save doevelopper/0b7af85ba4ded2d3fd5105a350969a63 to your computer and use it in GitHub Desktop.
Common bugs hierarchy i am using in all my projects
enum class Level : std::uint32_t
{
/* user actions malfunctions ....*/
	EMERGENCY    = (1 << 0),    /* system is unusable. A panic condition was reported to all processes. */
	CRITICAL     = (1 << 1),
	FATAL        = (1 << 2),     /* critical conditions */
	ALERT        = (1 << 3),
	ERROR        = (1 << 4),    /* action must be taken immediately. A condition that should be corrected immediately.  */
	WARNING      = (1 << 5),    /* error conditions */
	INFO         = (1 << 6),    /* warning conditions */
	TRACE        = (1 << 7),    /* informational */
	DEBUG        = (1 << 8),     /* debug-level messages. A message useful for debugging programs.  */
	ADVISORY     = (1 << 9),
  /* sotdtware malfunctions ....*/
	INHIBIT      = (1 << 10),   /* System should be restarted.  */
	HINDENBUG    = (1 << 11),
	MANDELBUG    = (1 << 12),
	BOHRBUG      = (1 << 13),
	HEISENBUG    = (1 << 14),		/* Disappear or alter its behavior when one attempts to study it.*/
	SCHRODINBUG  = (1 << 15)
	HIGGS_BUGSON = (1 << 16) 
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment