:orphan:
# PetscStageLogGetActive
This function returns whether events will be logged suring this stage. 
## Synopsis
```
#include "petscsys.h"   
PetscErrorCode PetscStageLogGetActive(PetscStageLog stageLog, int stage, PetscBool *isActive)
```
Not Collective


## Input Parameters

- ***stageLog -*** The `PetscStageLog`
- ***stage    -*** The stage to log



## Output Parameter

- ***isActive -*** The activity flag, `PETSC_TRUE` for logging, otherwise `PETSC_FALSE` (default is `PETSC_TRUE`)





## See Also
 `PetscStageLogSetActive()`, `PetscStageLogGetCurrent()`, `PetscStageLogRegister()`, `PetscLogGetStageLog()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/logging/utils/stagelog.c.html#PetscStageLogGetActive">src/sys/logging/utils/stagelog.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/logging/utils/stagelog.c)


[Index of all Profiling routines](index.md)  
[Table of Contents for all manual pages](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
