Søg i logarkiver og aktiviteter
Du kan søge efter logbeskeder og aktiviteter – du kan f.eks.:
Skrive et ord eller udtryk for at finde logbeskeder, der svarer til det.
Vise logbeskeder fra en bestemt proces.
Søge efter logbeskeder, der ikke opfylder bestemte kriterier.
Når du er færdig med en søgning, kan du arkivere den og bruge den igen.
Tip: Hvis du ved, at du vil søge i logbeskeder efter en bestemt enhed, kan du vælge enheden i indholdsoversigten, før du starter.
Søg efter bestemt tekst
Skriv en søgetekst, og tryk derefter på Retur.
Bemærk: Du søger i aktiviteter ved at klikke på knappen Aktiviteter på værktøjslinjen (eller bruge Touch Bar).
Logbeskeder eller aktiviteter, der opfylder søgekriterierne, vises i Konsolvinduet. Du kan indsnævre resultaterne yderligere.
Brug genvejsmenuen til at vise eller skjule bestemte emner
Ctrl-klik på en logbesked eller aktivitet.
På genvejsmenuen skal du skjule eller vise en bestemt egenskab (f.eks. proces, tråd-id eller beskedtype). Hvis du f.eks. vil holde op med at vise logbeskeder fra en bestemt proces, skal du skjule processen.
Når du vælger en mulighed, føjes den til søgefeltet, og søgeresultaterne opdateres med de logbeskeder eller aktiviteter, der opfylder søgekriterierne. Du kan indsnævre resultaterne yderligere.
Indsnævring af resultaterne
Du kan finjustere din søgeresultater på en af følgende måder:
Vælg, hvilken egenskab der skal søges efter: Klik på pilen ud for et søgefilter, og vælg derefter en egenskab. Søg f.eks. inden i processen eller i beskeden.
Tip: Du bruger søgefilteret Dato & tid ved at skrive datoen i formatet DD-MM-ÅÅÅÅ. Skriv f.eks. 13/09/2016, hvis du vil finde den 13. september 2016.
Brug flere søgefiltre: Anbring markøren efter det første filter, begynd at skrive søgetekst, tryk på Retur, og rediger derefter søgefeltet, hvis du vil. Gentag efter behov; søgefeltet ruller, når du tilføjer flere filtre.
Finjuster søgefiltre: Klik på pilen ud for et søgefilter, og vælg derefter en egenskab på den menu, der vises. Du kan f.eks. vælge at vise logbeskeder, der indholder søgeudtrykket eller ikke indeholder det.
Hvis du f.eks. vil søge efter logbeskeder, der stammer fra processen “Spotlight”, men ikke fra biblioteket “QuartzCore” eller kategorien “Netværk”, kan din søgning se således ud:
Brug genveje til egenskaber: Skriv søgekriteriet efter genvejen til egenskaben. Hvis du f.eks. vil søge efter logmeddelelser, som kommer fra processen “Spotlight”, skal du skrive
p:spotlight
.
Arkiver en søgning
Hvis du tror, at du vil komme til at søge efter et bestemt sæt logbeskeder eller aktiviteter igen, kan du arkivere søgningen for at gøre det lettere at finde oplysningerne næste gang.
Klik på Arkiver under søgefeltet.
Skriv et navn til søgningen.
Klik på Arkiver.
Den arkiverede søgning vises på favoritlinjen.
Tip: Du fjerner en arkiveret søgning fra favoritlinjen ved at ctrl-klikke på den og derefter vælge Fjern eller ved at trykke på og holde Kommandotasten nede og derefter trække den væk fra favoritlinjen. Du kan også trykke på og holde Kommandotasten nede og derefter trække for at ændre rækkefølge på de arkiverede søgninger.
Konsol søger efter logbeskeder, der passer til alle filtrene; jo flere kriterier du bruger, jo mere indsnævrer du søgningen. Hvis du ikke får de forventede resultater, skal du fjerne eller ændre nogle af filtrene.