:orphan:
# PetscLogDump
Dumps logs of objects to a file. This file is intended to be read by bin/petscview. This program no longer exists. 
## Synopsis
```
#include "petscsys.h"   
PetscErrorCode PetscLogDump(const char sname[])
```
Collective on `PETSC_COMM_WORLD`


## Input Parameter

- ***name -*** an optional file name



## Usage
```none
     PetscInitialize(...);
     PetscLogDefaultBegin(); or PetscLogAllBegin();
     ... code ...
     PetscLogDump(filename);
     PetscFinalize();
```





## Note
The default file name is Log.<rank> where <rank> is the MPI process rank. If no name is specified,
this file will be used.


## See Also
 [](ch_profiling), `PetscLogDefaultBegin()`, `PetscLogAllBegin()`, `PetscLogView()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/logging/plog.c.html#PetscLogDump">src/sys/logging/plog.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/logging/plog.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)  
