Mirror/doc/Components/NetworkLogSettings.md

30 lines
1.2 KiB
Markdown
Raw Normal View History

# Network Log Settings
**See also <xref:Mirror.LogFactory> in the API Reference.**
## Network Log Settings component
2020-05-09 02:39:53 +00:00
The Network Log Settings component allows you to configure logging levels and load the settings in a build.
2020-05-09 02:39:53 +00:00
When you first add NetworkLogSettings you will have to Create a new LogSettings asset that will store the settings.
![Inspector With No Settings](NetworkLogSettingsNoSettings.png)
2020-05-09 02:39:53 +00:00
> **Note:** If a LogSettings asset already exists the NetworkLogSettings component will set the Settings field when it is added to a game object.
## Log Settings
2020-05-09 02:39:53 +00:00
When you first set up LogSettings the list of components may be empty or incomplete. Running the game will cause Mirror scripts to add their respective loggers to the list so their logging levels can be changed.
![Inspector](NetworkLogSettings.png)
2020-05-09 02:39:53 +00:00
Log settings can also be changed using the "Mirror Log Level" window, which can be opened from the editor menu: Window > Analysis > Mirror Log Levels.
![Window](LogLevelWindow.png)
To change settings at runtime please see <xref:Mirror.LogFactory>.
## Issues
2020-05-09 02:39:53 +00:00
Mirrors Logging api is currently work in progress. If there is a bug or a feature you want added please make an issue [here](https://github.com/vis2k/Mirror/issues).