# 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
```none
Log.<rank>
```
where <rank> is the processor number. 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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
